nuxt-community / express-template

Starter template for Nuxt 2 with Express.
https://codesandbox.io/s/github/nuxt-community/express-template
1.25k stars 239 forks source link

ERROR Failed to compile with 6 errors #113

Closed orassr closed 6 years ago

orassr commented 6 years ago

vue init nuxt-community/express-template stars

? Project name stars ? Project description Nuxt.js project ? Author orassr orassraf@gmail.com

vue-cli · Generated "stars".

To get started:

 cd stars
 npm install # Or yarn
 npm run dev

C:\Users\orass\Desktop\LearnVue.js>cd stars

C:\Users\orass\Desktop\LearnVue.js\stars>npm install

uglifyjs-webpack-plugin@0.4.6 postinstall C:\Users\orass\Desktop\LearnVue.js\stars\node_modules\webpack\node_modules\uglifyjs-webpack-plugin node lib/post_install.js

nodemon@1.17.5 postinstall C:\Users\orass\Desktop\LearnVue.js\stars\node_modules\nodemon node bin/postinstall || exit 0

nuxt@1.4.0 postinstall C:\Users\orass\Desktop\LearnVue.js\stars\node_modules\nuxt opencollective postinstall || exit 0

 *** Thank you for using nuxt! ***

Please consider donating to our open collective to help us maintain this package.

https://opencollective.com/nuxtjs/donate

                ***

npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

added 1223 packages from 694 contributors in 16.975s [+] no known vulnerabilities found [14103 packages audited]

C:\Users\orass\Desktop\LearnVue.js\stars>npm run dev

stars@1.0.0 dev C:\Users\orass\Desktop\LearnVue.js\stars backpack dev

DONE Compiled successfully in 921ms 14:05:21

Server listening on 127.0.0.1:3000 ████████████████████ 100%

Build completed in 2.64s

ERROR Failed to compile with 6 errors 14:05:25

error in ./layouts/default.vue

Module build failed: Error: No parser and no file path given, couldn't infer a parser. at normalize (C:\Users\orass\Desktop\LearnVue.js\stars\node_modules\prettier\index.js:7051:13) at formatWithCursor (C:\Users\orass\Desktop\LearnVue.js\stars\node_modules\prettier\index.js:10370:12) at C:\Users\orass\Desktop\LearnVue.js\stars\node_modules\prettier\index.js:31115:15 at Object.format (C:\Users\orass\Desktop\LearnVue.js\stars\node_modules\prettier\index.js:31134:12) at Object.module.exports (C:\Users\orass\Desktop\LearnVue.js\stars\node_modules\vue-loader\lib\template-compiler\index.js:80:23)

@ ./layouts/default.vue 11:0-370 @ ./.nuxt/App.js @ ./.nuxt/index.js @ ./.nuxt/client.js @ multi webpack-hot-middleware/client?name=client&reload=true&timeout=30000&path=/__webpack_hmr ./.nuxt/client.js

error in ./layouts/error.vue

Module build failed: Error: No parser and no file path given, couldn't infer a parser. at normalize (C:\Users\orass\Desktop\LearnVue.js\stars\node_modules\prettier\index.js:7051:13) at formatWithCursor (C:\Users\orass\Desktop\LearnVue.js\stars\node_modules\prettier\index.js:10370:12) at C:\Users\orass\Desktop\LearnVue.js\stars\node_modules\prettier\index.js:31115:15 at Object.format (C:\Users\orass\Desktop\LearnVue.js\stars\node_modules\prettier\index.js:31134:12) at Object.module.exports (C:\Users\orass\Desktop\LearnVue.js\stars\node_modules\vue-loader\lib\template-compiler\index.js:80:23)

@ ./layouts/error.vue 11:0-367 @ ./.nuxt/index.js @ ./.nuxt/client.js @ multi webpack-hot-middleware/client?name=client&reload=true&timeout=30000&path=/__webpack_hmr ./.nuxt/client.js

error in ./.nuxt/components/nuxt-loading.vue

Module build failed: Error: No parser and no file path given, couldn't infer a parser. at normalize (C:\Users\orass\Desktop\LearnVue.js\stars\node_modules\prettier\index.js:7051:13) at formatWithCursor (C:\Users\orass\Desktop\LearnVue.js\stars\node_modules\prettier\index.js:10370:12) at C:\Users\orass\Desktop\LearnVue.js\stars\node_modules\prettier\index.js:31115:15 at Object.format (C:\Users\orass\Desktop\LearnVue.js\stars\node_modules\prettier\index.js:31134:12) at Object.module.exports (C:\Users\orass\Desktop\LearnVue.js\stars\node_modules\vue-loader\lib\template-compiler\index.js:80:23)

@ ./.nuxt/components/nuxt-loading.vue 11:0-381 @ ./.nuxt/App.js @ ./.nuxt/index.js @ ./.nuxt/client.js @ multi webpack-hot-middleware/client?name=client&reload=true&timeout=30000&path=/__webpack_hmr ./.nuxt/client.js

error in ./pages/index.vue

Module build failed: Error: No parser and no file path given, couldn't infer a parser. at normalize (C:\Users\orass\Desktop\LearnVue.js\stars\node_modules\prettier\index.js:7051:13) at formatWithCursor (C:\Users\orass\Desktop\LearnVue.js\stars\node_modules\prettier\index.js:10370:12) at C:\Users\orass\Desktop\LearnVue.js\stars\node_modules\prettier\index.js:31115:15 at Object.format (C:\Users\orass\Desktop\LearnVue.js\stars\node_modules\prettier\index.js:31134:12) at Object.module.exports (C:\Users\orass\Desktop\LearnVue.js\stars\node_modules\vue-loader\lib\template-compiler\index.js:80:23)

@ ./pages/index.vue 11:0-367 @ ./.nuxt/router.js @ ./.nuxt/index.js @ ./.nuxt/client.js @ multi webpack-hot-middleware/client?name=client&reload=true&timeout=30000&path=/__webpack_hmr ./.nuxt/client.js

error in ./pages/_id.vue

Module build failed: Error: No parser and no file path given, couldn't infer a parser. at normalize (C:\Users\orass\Desktop\LearnVue.js\stars\node_modules\prettier\index.js:7051:13) at formatWithCursor (C:\Users\orass\Desktop\LearnVue.js\stars\node_modules\prettier\index.js:10370:12) at C:\Users\orass\Desktop\LearnVue.js\stars\node_modules\prettier\index.js:31115:15 at Object.format (C:\Users\orass\Desktop\LearnVue.js\stars\node_modules\prettier\index.js:31134:12) at Object.module.exports (C:\Users\orass\Desktop\LearnVue.js\stars\node_modules\vue-loader\lib\template-compiler\index.js:80:23)

@ ./pages/_id.vue 11:0-365 @ ./.nuxt/router.js @ ./.nuxt/index.js @ ./.nuxt/client.js @ multi webpack-hot-middleware/client?name=client&reload=true&timeout=30000&path=/__webpack_hmr ./.nuxt/client.js

error in ./components/Footer.vue

Module build failed: Error: No parser and no file path given, couldn't infer a parser. at normalize (C:\Users\orass\Desktop\LearnVue.js\stars\node_modules\prettier\index.js:7051:13) at formatWithCursor (C:\Users\orass\Desktop\LearnVue.js\stars\node_modules\prettier\index.js:10370:12) at C:\Users\orass\Desktop\LearnVue.js\stars\node_modules\prettier\index.js:31115:15 at Object.format (C:\Users\orass\Desktop\LearnVue.js\stars\node_modules\prettier\index.js:31134:12) at Object.module.exports (C:\Users\orass\Desktop\LearnVue.js\stars\node_modules\vue-loader\lib\template-compiler\index.js:80:23)

@ ./components/Footer.vue 6:0-369 @ ./node_modules/babel-loader/lib?{"babelrc":false,"cacheDirectory":true,"presets":[["C://Users//orass//Desktop//LearnVue.js//stars//node_modules//babel-preset-vue-app//dist//index.common.js",{"targets":{"ie":9,"uglify":true}}]]}!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./layouts/default.vue @ ./layouts/default.vue @ ./.nuxt/App.js @ ./.nuxt/index.js @ ./.nuxt/client.js @ multi webpack-hot-middleware/client?name=client&reload=true&timeout=30000&path=/__webpack_hmr ./.nuxt/client.js

This question is available on Nuxt.js community (#c93)