vue-bulma / vue-admin

We are refactoring it, using the latest Vue and Bulma. WIP
9.43k stars 1.61k forks source link

"webpack:fail to compile" when run npm run dev #221

Open heqs opened 7 years ago

heqs commented 7 years ago
ERROR in ./~/_vue-bulma-jump@0.0.2@vue-bulma-jump/src/index.js Module parse failed: F:\MySource\vue\vue-admin-master\node_modules_vue-bulma-jump@0.0.2@vue-bulma-jump\src\index.js Unexpected token (1:7) You may need an appropriate loader to handle this file type. export BackToTop from './BackToTop' export default from './Jump'

@ ./~/_babel-loader@6.4.1@babel-loader/lib!./~/_vue-loader@11.3.4@vue-loader/lib/selector.js?type=script&index=0!./client/views/components/BackToTop.vue 50:0-43 @ ./client/views/components/BackToTop.vue @ ./client/views lazy ^.\/.*.vue$ @ ./client/store/modules/menu/lazyLoading.js @ ./client/store/modules/menu/index.js @ ./client/store/index.js @ ./client/app.js @ ./client/index.js @ multi ./build/dev-client ./client/index.js

ERROR in ./~/_vue-bulma-emoji@0.0.2@vue-bulma-emoji/src/index.js Module parse failed: F:\MySource\vue\vue-admin-master\node_modules_vue-bulma-emoji@0.0.2@vue-bulma-emoji\src\index.js Unexpected token (1:7) You may need an appropriate loader to handle this file type. export filter from './filter'
export EmojiIcon from './EmojiIcon'

@ ./~/_babel-loader@6.4.1@babel-loader/lib!./~/_vue-loader@11.3.4@vue-loader/lib/selector.js?type=script&index=0!./client/views/components/Emoji.vue 52:0-52 @ ./client/views/components/Emoji.vue @ ./client/views lazy ^.\/.*.vue$ @ ./client/store/modules/menu/lazyLoading.js @ ./client/store/modules/menu/index.js @ ./client/store/index.js @ ./client/app.js @ ./client/index.js @ multi ./build/dev-client ./client/index.js

ERROR in ./~/_vue-bulma-progress-tracker@0.0.4@vue-bulma-progress-tracker/src/index.js Module parse failed: F:\MySource\vue\vue-admin-master\node_modules_vue-bulma-progress-tracker@0.0.4@vue-bulma-progress-tracker\src\index.js Unexpected token (1:7) You may need an appropriate loader to handle this file type. export StepItem from './StepItem' export default from './Tracker'

@ ./~/_babel-loader@6.4.1@babel-loader/lib!./~/_vue-loader@11.3.4@vue-loader/lib/selector.js?type=script&index=0!./client/views/components/ProgressTracker.vue 76:0-71 @ ./client/views/components/ProgressTracker.vue @ ./client/views lazy ^.\/.*.vue$ @ ./client/store/modules/menu/lazyLoading.js @ ./client/store/modules/menu/index.js @ ./client/store/index.js @ ./client/app.js @ ./client/index.js @ multi ./build/dev-client ./client/index.js Child html-webpack-plugin for "index.html": Asset Size Chunks Chunk Names index.html 1.48 MB 0 webpack: Failed to compile.

Listening at http://localhost:8080

acampagnaro commented 7 years ago

You install node 6 LTS... And npm install?

On Sáb, 26 de ago de 2017 06:32 heqs notifications@github.com wrote:

ERROR in .//_vue-bulma-jump@0.0.2@vue-bulma-jump/src/index.js Module parse failed: F:\MySource\vue\vue-admin-master\node_modules_vue-bulma-jump@0.0.2@vue-bulma-jump\src\index.js Unexpected token (1:7) You may need an appropriate loader to handle this file type. export BackToTop from './BackToTop' export default from './Jump'

@ .//_babel-loader@6.4.1@babel-loader/lib!./~/_vue-loader@11.3.4@vue-loader/lib/selector.js?type=script&index=0!./client/views/components/BackToTop.vue 50:0-43 @ ./client/views/components/BackToTop.vue @ ./client/views lazy ^./.*.vue$ @ ./client/store/modules/menu/lazyLoading.js @ ./client/store/modules/menu/index.js @ ./client/store/index.js @ ./client/app.js @ ./client/index.js @ multi ./build/dev-client ./client/index.js

ERROR in .//_vue-bulma-emoji@0.0.2@vue-bulma-emoji/src/index.js Module parse failed: F:\MySource\vue\vue-admin-master\node_modules_vue-bulma-emoji@0.0.2@vue-bulma-emoji\src\index.js Unexpected token (1:7) You may need an appropriate loader to handle this file type. export filter from './filter'
export EmojiIcon from './EmojiIcon'

@ .//_babel-loader@6.4.1@babel-loader/lib!./~/_vue-loader@11.3.4@vue-loader/lib/selector.js?type=script&index=0!./client/views/components/Emoji.vue 52:0-52 @ ./client/views/components/Emoji.vue @ ./client/views lazy ^./.*.vue$ @ ./client/store/modules/menu/lazyLoading.js @ ./client/store/modules/menu/index.js @ ./client/store/index.js @ ./client/app.js @ ./client/index.js @ multi ./build/dev-client ./client/index.js

ERROR in .//_vue-bulma-progress-tracker@0.0.4 @vue-bulma-progress-tracker/src/index.js Module parse failed: F:\MySource\vue\vue-admin-master\node_modules_vue-bulma-progress-tracker@0.0.4@vue-bulma-progress-tracker\src\index.js Unexpected token (1:7) You may need an appropriate loader to handle this file type. export StepItem from './StepItem' export default from './Tracker'

@ .//_babel-loader@6.4.1@babel-loader/lib!./~/_vue-loader@11.3.4@vue-loader/lib/selector.js?type=script&index=0!./client/views/components/ProgressTracker.vue 76:0-71 @ ./client/views/components/ProgressTracker.vue @ ./client/views lazy ^./.*.vue$ @ ./client/store/modules/menu/lazyLoading.js @ ./client/store/modules/menu/index.js @ ./client/store/index.js @ ./client/app.js @ ./client/index.js @ multi ./build/dev-client ./client/index.js Child html-webpack-plugin for "index.html": Asset Size Chunks Chunk Names index.html 1.48 MB 0 webpack: Failed to compile.

Listening at http://localhost:8080

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/vue-bulma/vue-admin/issues/221, or mute the thread https://github.com/notifications/unsubscribe-auth/AJsBSm3LCtcKcVa4JkFJ2jOdUU9W6jPiks5sb-YZgaJpZM4PDbH4 .

heqs commented 7 years ago

My node version is v6.11.2,and run cnpm install in project‘s root directory

zjing123 commented 7 years ago

you should run npm install in project's root directory.

tomatobybike commented 7 years ago

run npm install in project's root directory,build error

konglx90 commented 6 years ago

I also meet this error.