TailwindCSS/Nesting error
Hey guys, i got an error in nuxt3 with the newest nuxt ui pro version.
i think it has something todo with pnpm
[17:51:23] WARN [nuxt] could not import postcss plugin tailwindcss/nesting with ESM. Please report this as a bug.
[17:51:23] ERROR Cannot start nuxt: Package subpath './nesting' is not defined by "exports" in C:\Users\Comma\Documents\Own\jghost\jghost-frontend\node_modules.pnpm\node_modules\tailwindcss\package.json
3 Replies
Hi @Joshua Gerke. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Based on the information provided in the knowledge sources, I don't have specific details about this particular error. However, I can offer some general advice based on Nuxt's bug reporting guidelines and the information you've shared.
The error you're encountering seems to be related to TailwindCSS and its nesting feature, which is not directly covered in the provided knowledge sources. However, there are a few things you can try:
1. Update to the latest version:
Make sure you're using the latest version of Nuxt UI Pro. You can do this by updating your
package.json
as described in the Nuxt UI Pro Edge documentation (https://ui.nuxt.com/pro/getting-started/installation#edge):
Then run pnpm install
.
2. Check for compatibility issues:
Ensure that all your dependencies, including TailwindCSS, are compatible with the version of Nuxt you're using.
3. Clean install:
Try removing your node_modules
folder and pnpm-lock.yaml
file, then run pnpm install
again.
4. Report the bug:
If the issue persists, it might be a bug. As suggested in the Nuxt bug reporting guidelines (https://nuxt.com/docs/community/reporting-bugs#figure-out-what-the-cause-might-be), try to determine if the issue is with Nuxt UI Pro, TailwindCSS, or another dependency.
5. Check for known issues:
Look for similar issues in the Nuxt UI Pro or TailwindCSS GitHub repositories.
If none of these steps resolve the issue, you may need to report this as a bug to the Nuxt UI Pro or TailwindCSS team, providing them with your full environment details and steps to reproduce the error.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@182848545248903168> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
this is my package.json: