Node-v3 icon indicating copy to clipboard operation
Node-v3 copied to clipboard

SyntaxError: The keyword 'package' is reserved, error when trying to bundle the flutterwave_node_V3 package.

Open eliashezron opened this issue 2 years ago • 2 comments

hello, I have been getting this error whenever I tried bundling the flutterwave_node_vs package and then on further research, I found out that the flutterwave_node_v3 package uses javascript-reserved words. and thus the error. here was the error when bundling with rollup

[!] (plugin commonjs--resolver) SyntaxError: The keyword 'package' is reserved (4:6) in C:\Users\name\Desktop\elias\repo\repo\node_modules\flutterwave-node-v3\services\banks\rave.banks-branches.js
2: const q = require('q');
3: const axios = require('axios');
4: const package = require('../../package.json');
         ^
5:
6: const spec = morx.spec()
SyntaxError: The keyword 'package' is reserved (4:6) in C:\Users\computer name\Desktop\name\name\name\node_modules\flutterwave-node-v3\services\beneficiaries\rave.create.js

you can also check out the stack overflow issue here https://stackoverflow.com/q/74284704/14165332 and contribute to the discussion.

eliashezron avatar Nov 03 '22 10:11 eliashezron

@eliashezron please where you able to resolve this issue, if so, how did you do it?

@corneliusyaovi please I need urgent help regarding this issue. Please

Mishael-Joe avatar Jan 02 '24 20:01 Mishael-Joe

@eliashezron please where you able to resolve this issue, if so, how did you do it?

@corneliusyaovi please I need urgent help regarding this issue. Please

No. I used a different alternative, Flutterwave should definitely know not to use Javascript reserved words.

eliashezron avatar Jan 12 '24 14:01 eliashezron