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

dynamic import() - webpack throws an error #150

Closed
xidedix opened this issue Jan 21, 2019 · 0 comments
Closed

dynamic import() - webpack throws an error #150

xidedix opened this issue Jan 21, 2019 · 0 comments

Comments

@xidedix
Copy link
Member

xidedix commented Jan 21, 2019

Anyone having issue:

 INFO  Starting development server...
 98% after emitting CopyPlugin

 ERROR  Failed to compile with 1 errors                                                                                                                                                                                                                                                                                                                                                                                     11:18:18 PM
 error  in ./src/router/index.js

Module parse failed: Unexpected token (5:9)
You may need an appropriate loader to handle this file type.

As a temp workaround please downgrade webpack to v4.28.4

  • be aware this will add webpack as a direct dependency in package.json
$ npm install webpack@4.28.4

see also:
dynamic import() Syntax makes webpack throw an error

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