-
Notifications
You must be signed in to change notification settings - Fork 153
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
lazy dynamic component import not working. #185
Comments
You can use |
ERROR in ./src/routes.js 561 | async(routeTo, routeFrom, resolve, reject) {
@ ./src/main.vue?vue&type=script&lang=js& (./node_modules/babel-loader/lib??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./src/main.vue?vue&type=script&lang=js&) 23:14-36 |
it seems you haven't installed babel-preset-env package.
i think this will fix the babel compiling error. |
babel-preset-env is already installed as I am using THIS template. It's there in json file. But as you mentioned I have created a .babelrc file and copied the content you had asked but still receiving the same error. |
I fix it: \config\webpack.common.js then: Unexpected token webpack import() error will be ok. |
Why dynamic component import in router throwing error?
The text was updated successfully, but these errors were encountered: