Closed FluffyDiscord closed 7 months ago
I just hit the same problem after updating a project of mine and it looks like the latest version limits the exported files in package.json
via the exports
field, but does not include the file specified in types
. After changing it to the following, it works for my case:
"exports": {
".": {
"svelte": "./src/index.js",
"types": "./types/index.d.ts"
}
},
@sirinsidiator thanks for taking a stab at it! Do you want to create a PR with your change? Happy to get it merged asap
I don't have the project checked out (only stabbed around in the node_modules folder), so it would be faster if you could just add the line yourself.
Addressed in v1.6.2 as suggested by @sirinsidiator. Closing this but please reopen if it's still an issue.
I had to update the plugin today, since I have been using fork, which got removed.
The following line of code throws exception an no longer works.
vite: 4.0.4 svelte: 3.55.1 svelte-simple-modal: 1.6.1 @sveltejs/vite-plugin-svelte: 1.0.0-next.42 svelte-preprocess: 4.10.6
vite.config.js
version 1.5.1 works fine