You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✘ [ERROR] Failed to resolve entry for package "@tailwindcss/postcss". The package may have incorrect main/module/exports specified in its package.json: No known conditions for "." specifier in "@tailwindcss/postcss" package [plugin externalize-deps]
node_modules/esbuild/lib/main.js:1374:27:
1374 │ let result = await callback({
╵ ^
a workaround currently is to use an external postcss.config.js file:
"@tailwindcss/postcss": "^4.0.0-alpha.15" is currently published as CJS, while "@tailwindcss/vite": "^4.0.0-alpha.15" is published as ESM.
Trying to use the postcss plugin inside a vite config file like this (with type: module set in package.json)
Causes this issue:
✘ [ERROR] Failed to resolve entry for package "@tailwindcss/postcss". The package may have incorrect main/module/exports specified in its package.json: No known conditions for "." specifier in "@tailwindcss/postcss" package [plugin externalize-deps]
a workaround currently is to use an external postcss.config.js file:
The text was updated successfully, but these errors were encountered: