-
Notifications
You must be signed in to change notification settings - Fork 12
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
Unexpected token import #3
Comments
Do you use webpack? |
Yeah. |
Yeah Em ter, 25 de out de 2016 às 12:15, Fangdun Cai [email protected]
|
@xereda It's because this repo is not ready for production. It does not provide a dist folder with the bundled files. You have the raw files and need to use webpack loaders (babel, .vue, etc...) to build a valid js bundle. |
OK. I am individually importing the component files (.vue files / Collapse.vue and Item.vue). Do you see any problem with that? |
@xereda See https://github.com/fundon/vue-admin/blob/master/build/webpack.base.conf.js#L60-L65, Maybe it helps you. |
An error has occurred. Analyze this: xereda@macminixereda:~/S/d/docmob.portal.vuejs2.0:master$ npm run dev
Listening at http://localhost:8080 /Users/xereda/Sites/docmob.local/docmob.portal.vuejs2.0/node_modules/webpack-core/lib/LoadersList.js:58 TypeError: element.loader.split is not a function npm ERR! Darwin 15.6.0 npm ERR! Please include the following file with any support request: |
Init a new app localy with vue-cli then check the webpack config files to understand |
Okay, but imported individually each vue component. Tks. |
In VueJS 2.0, the following error occurred:
index.js?11f0:1 Uncaught SyntaxError: Unexpected token import
I wait for a return. Tks.
The text was updated successfully, but these errors were encountered: