英文:
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
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?
答案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/tailwindcss
的changelog,发现了与我的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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论