Nuxt error in ./.nuxt/client.js | this.setDynamic

2019-07-29 18:16发布

问题:

I can not understand what caused this error and whether it is related to my code.

nuxt v1.4.2, windows 10

Can you please tell what could cause this error?

回答1:

It's very strange, but after removing package vuepress, it all worked



回答2:

I had this issue after updating from 1.4.2 to 2.1.0 today. It affected my static generation, not my local dev instance, but maybe this will help: to resolve it, I simply removed my .nuxt and dist directories and ran nuxt generate again.



回答3:

Switched from yarn install to npm install and worked for me.