Skip to content
New issue

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

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

Already on GitHub? # to your account

next": "8.0.0-canary.17 acorn workaround does not work #6167

Closed
steida opened this issue Jan 28, 2019 · 2 comments
Closed

next": "8.0.0-canary.17 acorn workaround does not work #6167

steida opened this issue Jan 28, 2019 · 2 comments

Comments

@steida
Copy link
Contributor

steida commented Jan 28, 2019

error  in ./node_modules/next/dist/client/next-dev.js

Module parse failed: Unexpected token (34:6)
You may need an appropriate loader to handle this file type.
|
|
> import('./noop');
| var _window = window,
|     assetPrefix = _window.__NEXT_DATA__.assetPrefix;

 @ multi ./node_modules/next/dist/client/next-dev

But if I add "acorn": "^6.0.5" to dependencies, it works.

@steida
Copy link
Contributor Author

steida commented Jan 28, 2019

I am not sure how to fix it. Leaving it here as a workaround. Maybe I switch back to Yarn.

This was referenced Jan 28, 2019
@dav-is
Copy link
Contributor

dav-is commented Jan 28, 2019

@steida I don't think this is an issue we can fix on our end. We tried adding "acorn": "^6.0.5" to next's dependencies (#6137), but it doesn't seem to be making a difference.

Solutions:
webpack/webpack#8656 (comment)
NPM PR that fixes this issue:
npm/cli#147

@steida steida closed this as completed Jan 29, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jan 29, 2020
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants