Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nuxt 2.16 has postcss8 by default #609

Closed
simllll opened this issue Feb 9, 2023 · 1 comment · Fixed by #611
Closed

nuxt 2.16 has postcss8 by default #609

simllll opened this issue Feb 9, 2023 · 1 comment · Fixed by #611
Labels
bug Something isn't working

Comments

@simllll
Copy link
Contributor

simllll commented Feb 9, 2023

Version

@nuxtjs/tailwindcss: 6.3.1
nuxt: 2.16.0

Steps to reproduce

install nuxt 2.16 and add nuxtjs/tailwind, you get an error like:
FATAL Cannot destructure property 'nuxt' of 'this' as it is undefined. 13:32:58
which his actually covered here already: #572
but actually this is caused by installing postcss8, which is not needed anymore on nuxt 2.16 as it is now the default see https://github.com/nuxt/nuxt/releases/tag/v2.16.0

What is Expected?

do not install postcss8 for nuxt 2.16.. i tested it locally by just commeting out:

if (isNuxt2()) {
      // await installModule("@nuxt/postcss8");
    }

in dist/module.mjs
and eveything seems working perfectly fine :-)

What is actually happening?

it install postcss8 and breaks.

@simllll simllll added the bug Something isn't working label Feb 9, 2023
@nathakits
Copy link

I'm also having this issue after upgrading Nuxt to 2.16.0

simllll added a commit to simllll/tailwindcss that referenced this issue Feb 9, 2023
atinux pushed a commit that referenced this issue Feb 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants