coreui / coreui-free-vue-admin-template

Open source admin template based on Bootstrap 5 and Vue 3
https://coreui.io/product/free-vue-admin-template/
MIT License
3.3k stars 969 forks source link

dynamic import() - webpack throws an error #150

Closed xidedix closed 4 years ago

xidedix commented 5 years ago

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

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