小编Xir*_*hat的帖子

Nuxt 致命错误 TypeError:无法解构“this”的属性“nuxt”,因为它未定义

当我尝试构建 docker 映像时,在运行后出现此错误yarn build

\n
#0 0.496 yarn run v1.22.19                                                                                                                                                                                         \n#0 0.531 $ nuxt build\n#0 1.538 \xe2\x84\xb9\xef\xb8\x8f Using Tailwind CSS from ~/assets/css/tailwind.css\n#0 1.543 \n#0 1.543  FATAL  Cannot destructure property 'nuxt' of 'this' as it is undefined.\n#0 1.543 \n#0 1.543   at postcss8Module (node_modules/@nuxt/postcss8/dist/index.js:15:10)\n#0 1.543   at installModule (node_modules/@nuxt/kit/dist/index.mjs:416:9)\n#0 1.543   at async setup (node_modules/@nuxtjs/tailwindcss/dist/module.mjs:186:7)\n#0 1.543   at async ModuleContainer.normalizedModule (node_modules/@nuxt/kit/dist/index.mjs:167:5)\n#0 1.543   at async ModuleContainer.addModule (node_modules/@nuxt/core/dist/core.js:239:20)\n#0 1.543   at async ModuleContainer.ready (node_modules/@nuxt/core/dist/core.js:51:7)\n#0 1.543   at async Nuxt._init (node_modules/@nuxt/core/dist/core.js:478:5)\n#0 1.543 \n#0 1.548 \n#0 1.548 \xe2\x95\xad\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x95\xae\xe2\x94\x82                                                                              \xe2\x94\x82\xe2\x94\x82 …
Run Code Online (Sandbox Code Playgroud)

docker yarnpkg nuxt.js

2
推荐指数
2
解决办法
7667
查看次数

标签 统计

docker ×1

nuxt.js ×1

yarnpkg ×1