andoshin11 / vue-cli-plugin-nuxt-starter-template

Nuxt.js starter project template for vue-cli v3. https://starter.nuxtjs.org
MIT License
48 stars 4 forks source link

Property 'compilation' of undefined ProgressPlugin #4

Open harlekoy opened 6 years ago

harlekoy commented 6 years ago

Error

> project-nuxt@0.1.0 dev /Users/harlequindoyon/Sites/project-nuxt
> nuxt

  nuxt:build App root: /Users/harlequindoyon/Sites/project-nuxt/src +0ms
  nuxt:build Generating /Users/harlequindoyon/Sites/project-nuxt/.nuxt files... +1ms
  nuxt:build Generating files... +54ms
  nuxt:build Generating routes... +7ms
  nuxt:build Building files... +20ms

 ERROR

  TypeError: Cannot read property 'compilation' of undefined

  - ProgressPlugin.js:121 ProgressPlugin.apply
    [project-nuxt]/[webpack]/lib/ProgressPlugin.js:121:19

  - Tapable.js:375 Compiler.apply
    [project-nuxt]/[nuxt]/[tapable]/lib/Tapable.js:375:16

  - webpack.js:33 webpack
    [project-nuxt]/[nuxt]/[webpack]/lib/webpack.js:33:19

  - builder.js:524 compilers.compilersOptions.map.compilersOption
    [project-nuxt]/[nuxt]/lib/builder/builder.js:524:24

  - Array.map

  - builder.js:523 Builder.webpackBuild
    [project-nuxt]/[nuxt]/lib/builder/builder.js:523:39

  - builder.js:168 Builder.build
    [project-nuxt]/[nuxt]/lib/builder/builder.js:168:16

Version

☁  project-nuxt [master] ⚡ vue -V
3.0.1
stuartjnelson commented 6 years ago

+1

joernroeder commented 6 years ago

+1

vinceumo commented 6 years ago

+1

LeonWuV commented 6 years ago

I have the same issue.

LeonWuV commented 6 years ago

nuxt 1.4 depends on webpack 3, whereas vue cli 3 is using webpack 4. But nuxt 2 uses webpack 4! So

npm rm nuxt npm i nuxt-edge can solve this issue

danii-nebot commented 5 years ago

@LeonWuV's fix worked for me, although for some reason only after I ran both commands one after the other, instead of the one liner. So: npm uninstall nuxt --save then npm install nuxt-edge --save