-
Notifications
You must be signed in to change notification settings - Fork 55
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
Internal server error: No "exports" main defined #46
Comments
same to me |
Same for me as well, something must've gone wrong with the recent re-releases. |
Same problem since yesterday |
I solved the problem by adding ""resolutions": {"@svgr/core": "6.2.1"}" to the package.json file |
Hi, thanks for all the feedback! According to the context provided by @linzeguang, is it caused by the new version of |
I think it should be, but I didn't compare the difference between the old and new versions of @svgr/core |
Probably related to this, at least that's my guess. |
use version 1.x also solve the problem vite-plugin-svgr@^1.0.0:
version "1.1.0"
resolved "http://bnpm.byted.org/vite-plugin-svgr/-/vite-plugin-svgr-1.1.0.tgz#75b0e1eb55acadb8ab2666b736e9d1428887326f"
integrity sha512-fuwfRpUoMBX3wr47JVt4b4xpMYujONDGyDwZFE4JuohVTJovJ4VCNeAb3//mzdRxdzeHEfJuedpoHTvwPsqisA==
dependencies:
"@svgr/core" "^6.2.0" |
it seems that this problem will be fixed by this pr: gregberge/svgr#749 |
Released v2.2.1 Updated |
I'm receiving the following error upon tuning my Vite+React app:
This is my vite.config.ts
We use the same usage logic according to https://www.npmjs.com/package/vite-plugin-svgr
These are the versions of the packages we use:
The text was updated successfully, but these errors were encountered: