tailwindcss icon indicating copy to clipboard operation
tailwindcss copied to clipboard

Upgrade postcss-nesting dependency version for Node 17+ support

Open onlime opened this issue 4 years ago • 9 comments

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",

onlime avatar Nov 04 '21 08:11 onlime

I found that "postcss-nesting": "^9.0.1" was not published.

thevuong avatar Nov 16 '21 06:11 thevuong

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.

onlime avatar Nov 16 '21 08:11 onlime

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

amurf avatar Nov 25 '21 23:11 amurf

PR open here as well #397

@amurf Is this going to be merge and make it into a release soon? any blockers?

onlime avatar Dec 03 '21 09:12 onlime

Happy New Year! Can #397 be merged anytime soon?

onlime avatar Jan 03 '22 20:01 onlime

any updates here?

aprilahijriyan avatar Jan 27 '22 02:01 aprilahijriyan

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?

constancehermit avatar Mar 01 '22 08:03 constancehermit

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.

stale[bot] avatar May 01 '22 09:05 stale[bot]

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.

Christopotamus avatar May 25 '22 19:05 Christopotamus

It appears that this dependency update has already been completed. Is this issue ready to close?

antoinne85 avatar Nov 17 '22 14:11 antoinne85