question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. Itย collects links to all the places you might be looking at while hunting down a tough bug.

And, if youโ€™re still stuck at the end, weโ€™re happy to hop on a call to see how we can help out.

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

See original GitHub issue

Version

@nuxtjs/tailwindcss: 5.3.3 nuxt: 2.15.8 platform: Windows 11.

Reproduction Link

https://github.com/PawFV/platform-portal

Steps to reproduce

yarn install && yarn dev

What is Expected?

Project should start in development mode

What is actually happening?

 FATAL  Cannot destructure property 'nuxt' of 'this' as it is undefined.                                                        11:14:20  

  at postcss8Module (node_modules\@nuxt\postcss8\dist\index.js:16:10)
  at installModule (/C:/Users/paujo/platform-portal/node_modules/@nuxt/kit/dist/index.mjs:416:9)
  at async setup (/C:/Users/paujo/platform-portal/node_modules/@nuxtjs/tailwindcss/dist/module.mjs:186:7)
  at async ModuleContainer.normalizedModule (/C:/Users/paujo/platform-portal/node_modules/@nuxt/kit/dist/index.mjs:167:5)
  at async ModuleContainer.addModule (node_modules\@nuxt\core\dist\core.js:239:20)
  at async ModuleContainer.ready (node_modules\@nuxt\core\dist\core.js:51:7)
  at async Nuxt._init (node_modules\@nuxt\core\dist\core.js:478:5)


   โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
   โ”‚                                                                                 โ”‚
   โ”‚   โœ– Nuxt Fatal Error                                                            โ”‚
   โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

error Command failed with exit code 1.

Issue Analytics

  • State:open
  • Created 10 months ago
  • Reactions:16
  • Comments:14

github_iconTop GitHub Comments

5reactions
PawFVcommented, Nov 17, 2022

My solution for now:

Downgrade to version 4.2.1.

yarn add @nuxtjs/tailwindcss@4.2.1

4reactions
chamyeongdocommented, Nov 19, 2022

temporarily solved by using overrides property.

npm version >= 8.3

// package.json
...
  "overrides": {
    "@nuxtjs/tailwindcss": {
      "@nuxt/kit": "3.0.0-rc.13"
    }
  },
...
> npm list @nuxt/kit
โ””โ”€โ”ฌ @nuxtjs/tailwindcss@5.3.5
  โ””โ”€โ”€ @nuxt/kit@3.0.0-rc.13 overridden
Read more comments on GitHub >

github_iconTop Results From Across the Web

[error] Cannot destructure property 'nuxt' of 'this' as it ... - GitHub
Working fine on dev. When deploying to vercel it fails: [error] Cannot destructure property 'nuxt' of 'this' as it is undefined. Might beย ......
Read more >
[Vue warn]: Error in data(): "TypeError: Cannot destructure ...
I am setting up tests on a Nuxt2 app using @nuxtjs/composition-api and @vue/test-utils . In addition, there is a vue-CLI UI library usingย ......
Read more >
Cannot destructure Property of Undefined Error in JS
The "Cannot destructure property of undefined" error occurs when we try to destructure a property from a value that is equal to undefined...
Read more >
JS error โ€œCannot destructure propertyโ€ - WordPress.org
Hello, I know another issue : Uncaught TypeError: wp.serverSideRender is undefined in block.js. which to my knowledge only appears in the console andย ......
Read more >
TypeError: Cannot destructure property 'type' of 'undefined' as ...
Unable to complete saved object migrations for the [.kibana] index. TypeError: Cannot destructure property 'type' of 'undefined' as it isย ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found