nuxt 2.16 has postcss8 by default

This issue has been tracked since 2023-02-09.

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.

nathakits wrote this answer on 2023-02-09

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

More Details About Repo
Owner Name nuxt-modules
Repo Name tailwindcss
Full Name nuxt-modules/tailwindcss
Language TypeScript
Created Date 2019-04-04
Updated Date 2023-03-29
Star Count 1285
Watcher Count 12
Fork Count 157
Issue Count 57

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date