-
Notifications
You must be signed in to change notification settings - Fork 183
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
tailwindcss/lib/lib/defaultExtractor
not found
#942
Comments
Could you share your nuxt.config and package.json please? |
Same question. My environment is Mac too. // https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2024-11-01',
devtools: { enabled: true },
modules: ['@nuxt/ui']
})
{
"name": "nuxt-app",
"private": true,
"type": "module",
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
},
"dependencies": {
"@nuxt/ui": "2.21.0",
"nuxt": "^3.15.2",
"vue": "latest",
"vue-router": "latest"
},
"packageManager": "[email protected]+sha512.b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0"
} |
Nothing to see installed only nuxt ui and added to modules on new project.... |
I resolved this issue by switching the package manager from |
I use bun and have Nuxt3 and Nuxt UI 2 but not able to install Tailwindcss v4 without errors... Tutorial used: https://tailwindcss.com/docs/installation/framework-guides/nuxt Issue on install:
Issue on
My packages:
|
Nuxt UI 2 still depends on TailwindCSS 3 as it uses the exported extractor. |
tailwindcss/lib/lib/defaultExtractor
not found
OK - I haven't been able to reproduce this issue so far. I may still need a minimum repro from your system (a base project with the Nuxt project prepared, i.e. |
Same issue |
Still same issue. Literally just a new project with nuxt ui and nuxt ui pro. |
same issue... |
Installing |
Yes. I'm inclined to believe that this issue occurs if tailwindcss@4 is installed... which it shouldn't be yet. If someone provides a lock file, I can investigate. |
Also encountered the same issue using WSL2 and pnpm (10.4.1) I installed [email protected] despite it being a dependency of @nuxtjs/[email protected] Then created a basic tailwindcss config following https://tailwindcss.nuxtjs.org/tailwind/config After that I had to add the following to my devDependencies Then |
I just installed tailwindcss as my devDep and it solved my issue |
Hm, it might be possible that we need to pin the tailwindcss versions in Nuxt UI 2 https://github.com/nuxt/ui/blob/main/package.json#L56 Will investigate and raise a PR (/cc @benjamincanac, please do wait for the PR as I may include another minor fix with it) |
Could someone provide their |
PNPMEmpty Nuxt3 with Nuxt UI 2 using pnpm: Error on Nuxt UI Module add
package.json
BunEmpty Nuxt3 with NuxtUI 2 using Bun: Error on Tailwindcss4 install:
package.json:
|
Environment
Mac
Reproduction
Install nuxt ui on latest nuxt
Describe the bug
nuxt/ui#3139
Get error listed in issue on new install.
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: