Can't call the flutterwave verify payment endpoint because of naming conflict by flutterwave

Hello,

I am using Next JS and here is the error I am having while calling the flutterwave verify payment gateway.

Error:
× package cannot be used as an identifier in strict mode
╭─[C:\Users\tallj\OneDrive\Desktop\unimart2\node_modules\flutterwave-node-v3\utils\logger.js:9:1]
9 │ {
10 │ publicKey: _rave.getPublicKey(),
11 │ language: ‘NodeJs v3’,
12 │ version: package.version,
· ───────
13 │ title: ‘Incoming call’,
14 │ message: name,
15 │ },
╰────

Caused by:
Syntax Error

Import trace for requested module:
./node_modules/flutterwave-node-v3/utils/logger.js
./node_modules/flutterwave-node-v3/services/banks/rave.banks-branches.js
./node_modules/flutterwave-node-v3/lib/rave.banks.js
./node_modules/flutterwave-node-v3/index.js
./app/api/webhook/route.js
⨯ ./node_modules/flutterwave-node-v3/utils/logger.js

Error:
× package cannot be used as an identifier in strict mode
╭─[C:\Users\tallj\OneDrive\Desktop\unimart2\node_modules\flutterwave-node-v3\utils\logger.js:9:1]
9 │ {
10 │ publicKey: _rave.getPublicKey(),
11 │ language: ‘NodeJs v3’,
12 │ version: package.version,
· ───────
13 │ title: ‘Incoming call’,
14 │ message: name,
15 │ },
╰────

Caused by:
Syntax Error

Import trace for requested module:
./node_modules/flutterwave-node-v3/utils/logger.js
./node_modules/flutterwave-node-v3/services/banks/rave.banks-branches.js
./node_modules/flutterwave-node-v3/lib/rave.banks.js
./node_modules/flutterwave-node-v3/index.js
./app/api/webhook/route.js

How can I handle this error?

It seems that the name ‘package’ is a reserved name and as such can’t be used.