Nuxt FATAL Cannot set property 'stage' of undefined error

huangapple go评论56阅读模式
英文:

Nuxt FATAL Cannot set property 'stage' of undefined error

问题

Nuxt致命错误:无法设置未定义的属性“stage”

有人在Nuxt上遇到过这个问题吗?致命错误:无法设置未定义的属性“stage”

当我升级节点版本从12.16.1到14.18.0时,它会返回Nuxt致命错误。

您有任何想法或解决方案吗?

Nuxt FATAL Cannot set property 'stage' of undefined error

英文:

Nuxt FATAL Cannot set property 'stage' of undefined error

Anyone faced this issue on Nuxt FATAL Cannot set property 'stage' of undefined error

When I upgrade node 12.16.1 to 14.18.0 it's returning nuxt fatal error.

Do you have any idea or solution?

Nuxt FATAL Cannot set property 'stage' of undefined error

答案1

得分: 1

@nuxtjs/tailwindcss更新到版本"5.3.2"对我来说是解决方案。
那个版本不是最新版本,但在此日期没有要求任何升级步骤。

英文:

Updating @nuxtjs/tailwindcss to version "5.3.2" was the solution for me.
That version isn't the latest version at this date but it didn't require any upgrade steps.

答案2

得分: 0

I came across the same error and the answer Tomas gave below pointed me in the right direction.
我遇到了相同的错误,下面Tomas给出的答案指引我朝正确的方向前进。

What I did was look at the @nuxtjs/tailwindcss changelog and saw where there was a breaking change for my tailwind version and what they recommended was adding a peer dependency as you can see here
我的做法是查看了@nuxtjs/tailwindcsschangelog,发现了与我的tailwind版本不兼容的地方,他们建议添加一个同级依赖,你可以在这里看到。

Then using the changelog I found which version would still be compatible with my nuxt and tailwind versions
然后,使用changelog,我找到了与我的nuxt和tailwind版本兼容的版本。

英文:

Ok I cam across the same error and the answer Tomas gave below pointed me in the right direction.

What I did was look at the @nuxtjs/tailwindcss changelog and saw where there was a breaking change for my tailwind version and what they recommended was adding a peer dependency as you can see here

Then using the changelog I found which version would still be compatible with my nuxt and tailwind versions

huangapple
  • 本文由 发表于 2023年5月21日 18:50:09
  • 转载请务必保留本文链接:https://go.coder-hub.com/76299490.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定