tailwindcss
tailwindcss copied to clipboard
Upgrade postcss-nesting dependency version for Node 17+ support
Version
@nuxtjs/tailwindcss: v4.2.1 nuxt: v2.15.8 node: v17.0.1
Steps to reproduce
Try to install @nuxtjs/tailwindcss in a plain nuxt project:
$ yarn add @nuxtjs/tailwindcss
yarn add v1.22.17
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
error [email protected]: The engine "node" is incompatible with this module. Expected version "12 - 16". Got "17.0.1"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
What is Expected?
@nuxtjs/tailwindcss should install latest [email protected] version where this issue has been fixed. In both postcss-nesting 8.0.1 and 9.0.0, Node version was limited to 12-16, not supporting latest Node 17+ versions. This has been fixed in https://github.com/csstools/postcss-nesting/issues/87 postcss-nesting 9.0.1
suggested change in package.json:
- "postcss-nesting": "^8.0.1",
+ "postcss-nesting": "^9.0.1",
I found that "postcss-nesting": "^9.0.1" was not published.
I found that
"postcss-nesting": "^9.0.1"was not published.
ok, I have asked the maintainer on https://github.com/csstools/postcss-nesting/issues/87#issuecomment-969996939 to publish it. Let's hope this is fixed soon.
This is still happening and a new version of postcss-nesting has been released 10.0.2
PR open here as well https://github.com/nuxt-community/tailwindcss-module/pull/397
PR open here as well #397
@amurf Is this going to be merge and make it into a release soon? any blockers?
Happy New Year! Can #397 be merged anytime soon?
any updates here?
I was encountering this issue, and saw that #397 got closed without merging.
So I bumped @nuxt/tailwindcss to v5.0.0-4 & saw that postcss-nesting got updated to 10.1.2 (edit: where the issue is fixed)
I guess the the plain nuxt installation should choose a more recent @nuxt/tailwindcss version?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I was encountering this issue, and saw that #397 got closed without merging.
So I bumped @nuxt/tailwindcss to v5.0.0-4 & saw that postcss-nesting got updated to 10.1.2 (edit: where the issue is fixed)
I guess the the plain nuxt installation should choose a more recent @nuxt/tailwindcss version?
This fixes it for me as well.
I'm using yarn, so a simple yarn add @nuxtjs/tailwindcss was enough to get it working for me.
It appears that this dependency update has already been completed. Is this issue ready to close?