nextein dev error with next 8.0.0
elmasse opened this issue · comments
Masse Fierro commented
Related: vercel/next.js#6240
ERROR Failed to compile with 1 errors 8:41:01 PM
error in /Users/elmasse/Projects/elmasse/nextein-ws/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;
Possible workaround:
- Remove package-lock.
- Install
webpack@4.28.4
as devDependency.
Gustavo Verzola commented
I had this issue upgrading to Next 8 too and solved by installing acorn
package. I am not sure if this is related to Nextein. I think it is a NextJS bug.
Masse Fierro commented
Hi @verzola
Yes, it seems related to NextJS. It's strange since I have some others projects I moved to next-8 and I haven't seen any issue so far. Maybe there is a transitive dependency somewhere.
But for instance in nextein-example
I had to add both webpack@4.28.4
and acorn@6.0.5
to devDependencies in order to get nextein dev
back to work.