Nuxt.js: _objectSpread is not defined after upgrade to 2.8.1

Created on 17 Jul 2019  路  4Comments  路  Source: nuxt/nuxt.js

Version

2.8.1

Reproduction link

https://gitlab.com/welchcanavan/www-site

Steps to reproduce

  1. update nuxt version from 2.3.4 to 2.8.1 in your package.json
  2. run npm upgrade
  3. see that pieces of code relying on the spread operator no longer function
  4. see the following bug _objectSpread is not defined

    Screen Shot 2019-07-16 at 8.04.08 PM.png

What is expected ?

the application runs pieces of code that involve the spread operator

What is actually happening?

the application no longer runs pieces of code that involve the spread operator

This bug report is available on Nuxt community (#c9499)
bug-report

Most helpful comment

Hi @xiwcx, try this:

  1. Remove node_modules
  2. Remove package-lock.json
  3. Run yarn or npm install

All 4 comments

Hi @xiwcx, try this:

  1. Remove node_modules
  2. Remove package-lock.json
  3. Run yarn or npm install

@ricardogobbosouza, removing package-lock.json did the trick, thank you!

is there any documentation on upgrading at https://nuxtjs.org/ ? I couldn't find anything official, just random stack overflow comments and the directions from the release notes of 2.3.1

Please note that for upgrading Nuxt.js just changing version inside package.json is not enough. Please use yarn upgrade or npm upgrade so that the final directory structure of node_modules will be correct. In case of problems clean up node_modules and yarn.lock/package-lock.json.

This seems to still be accurate, so I'll probably submit a pull request to include this in a more prominent location, but I wanted to make sure I'm not missing anything first.

@ricardogobbosouza, thanks again!

Was this page helpful?
0 / 5 - 0 ratings