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
[v4] package.json
in @tailwindcss/vite
is not standard.
#13216
Comments
const config: StorybookConfig = {
stories: [/** stories */],
addons: [/** addons */],
framework: {
name: '@storybook/react-vite',
options: {},
},
viteFinal: async (config) => {
config.plugins = config.plugins || []
config.plugins.push((await import('@tailwindcss/vite')).default())
return config
},
}
export default config Everything works fine. Maybe {
"main": "./dist/index.js", // CommonJS
"module": "./dist/index.mjs", // ESM
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.mts",
"import": "./dist/index.mjs",
"default": "./dist/index.js",
},
"./package.json": "./package.json"
},
} |
What version of Node are you using? |
And the version of |
@blackcater Could you share a repo with a reproduction? |
I got the same error when using this package with
Error: ERR_PACKAGE_PATH_NOT_EXPORTED No "exports" main defined in @tailwindcss/vite/package.json |
When I use
@tailwindcss/vite
@4 withstorybook
. It reported an error as bellow:It seems like
esbuild
can't findmain
field inpackage.json
from@tailwindcss/vite
package.The text was updated successfully, but these errors were encountered: