Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
eliashezron opened this issue Nov 3, 2022 · 2 comments

Comments

@eliashezron
Copy link

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.

@Mishael-Joe
Copy link

@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

@eliashezron
Copy link
Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants