Static GitHub Issues

[2585] nuxt.plugin('build',..) is not supported. Use new hooks system.

prev: app.addRoutes error on v1.1.1
next: styleResources : watch the file changes

Hi. After update i get this error when i want to run npm run build ` ERROR Nuxt error

Error: nuxt.plugin('build',..) is not supported. Use new hooks system.

  • nuxt.js:88 Nuxt.plugin proiecte/nuxt/lib/core/nuxt.js:88:13

  • index.js:54 ModuleContainer.nuxtWorkbox proiecte/@nuxtjs/workbox/index.js:54:13

  • module.js:155 Promise proiecte/nuxt/lib/core/module.js:155:30

  • new Promise

  • module.js:139 ModuleContainer.addModule proiecte/nuxt/lib/core/module.js:139:12

  • module.js:90 ModuleContainer.requireModule proiecte/nuxt/lib/core/module.js:90:17

  • index.js:7 module proiecte/@nuxtjs/pwa/index.js:7:17

  • index.js:1 promise.then proiecte/@nuxtjs/pwa/index.js:1:146

  • next_tick.js:188 process._tickCallback internal/process/next_tick.js:188:7

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! proiecte@1.0.0 build: nuxt build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the proiecte@1.0.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.`

What should i Change?

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2250">#c2250</a>)</em></sub></div>