-
Notifications
You must be signed in to change notification settings - Fork 880
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
Acorn throwing an error on a perfectly valid package.json file (?) #415
Comments
|
Ok, fair enough. Not sure I understand the failure though - isn't all JSON also valid JavaScript? |
(Or, at the very least, could Acorn throw a more clear error message for this kind of problem?) |
Well, the problem is that beginning is totally valid JavaScript, but not with a meaning you might be putting into it. It's very similar to confusing issue people are getting when using arrow functions as If you want to still parse this as a JavaScript expression, you might want to look at |
Hey, I'm not sure what's going on here of if this is even really an acorn issue, but I'm getting this logged in my build output when trying to build a bundle via webpack:
For reference, here's the package.json file that it's claiming is invalid:
As far as I can tell, everything in that file is perfectly valid (node.js parses it without complaint). I think 2:9 is the
"
at the end of"_args":
which seams to be in order to me.This could be related to webpack/webpack#303
The text was updated successfully, but these errors were encountered: