DEV Community

Cover image for FATAL Cannot destructure property 'nuxt' of 'this' as it is undefined.
Ruan Aragão
Ruan Aragão

Posted on

FATAL Cannot destructure property 'nuxt' of 'this' as it is undefined.

$ nuxt
ℹ Using default Tailwind CSS file from runtime/tailwind.css                                                           nuxt:tailwindcss 06:42:07

 FATAL  Cannot destructure property 'nuxt' of 'this' as it is undefined.                                                               06:42:07

  at postcss8Module (node_modules/@nuxt/postcss8/dist/index.js:15:10)
  at installModule (node_modules/@nuxt/kit/dist/index.mjs:435:21)
  at async setup (node_modules/@nuxtjs/tailwindcss/dist/module.mjs:186:7)
  at async ModuleContainer.normalizedModule (node_modules/@nuxt/kit/dist/index.mjs:167:5)
  at async ModuleContainer.addModule (node_modules/@nuxt/core/dist/core.js:167:20)
  at async ModuleContainer.ready (node_modules/@nuxt/core/dist/core.js:34:7)
  at async Nuxt._init (node_modules/@nuxt/core/dist/core.js:342:5)


   ╭─────────────────────────────────────────────────────────────────────────────────╮
   │                                                                                 │
   │   ✖ Nuxt Fatal Error                                                            │
   │                                                                                 │
   │   TypeError: Cannot destructure property 'nuxt' of 'this' as it is undefined.   │
   │                                                                                 │
   ╰─────────────────────────────────────────────────────────────────────────────────╯

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Enter fullscreen mode Exit fullscreen mode

do...

Add in your package.json:

  "resolutions": {
    "@nuxt/kit": "3.0.0-rc.13"
  }
Enter fullscreen mode Exit fullscreen mode

and run:
$ yarn

Font: https://github.com/nuxt-modules/tailwindcss/issues/598

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post