Open Roger-Sa opened 9 months ago
Hi, same warning from @roxi/routify@3.0.0-next.212
[vite-plugin-svelte] WARNING: The following packages have a svelte field in their package.json but no exports condition for svelte.
@roxi/routify@3.0.0-next.212
My Packages:
"devDependencies": {
"@roxi/routify": "^3.0.0-next.212",
"@sveltejs/vite-plugin-svelte": "^3.0.1",
"@tsconfig/svelte": "^5.0.2",
"svelte": "^4.2.8",
"svelte-check": "^3.6.2",
"tslib": "^2.6.2",
"typescript": "^5.2.2",
"vite": "^5.0.8",
"vite-tsconfig-paths": "^4.3.1"
},
@jakobrosenberg
This is a very quick fix. I believe because of this declaration:
https://github.com/roxiness/routify/blob/next/package.json#L6
"svelte": "lib/runtime/index.js",
you just need to add here:
https://github.com/roxiness/routify/blob/next/package.json#L33
"svelte": "./lib/runtime/index.js",
which gives
"exports": {
...
".": {
...
"svelte": "./lib/runtime/index.js",
},
...
},
(Careful there is an extra ./
compared to the old declaration as described here: https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/faq.md#missing-exports-condition
:tada: This issue has been resolved in version 3.0.0-next.216 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Just realised this is for v2 and not v3. 😬
:tada: This issue has been resolved in version 2.18.13 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
@jakobrosenberg Thanks a lot! The warning is gone (Testing v3 here) you can close the issue :)
Edit: https://publint.dev/@roxi/routify@3.0.0-next.216
Appears to be working fine but
:tada: This issue has been resolved in version 2.18.14 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Please see https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/faq.md#missing-exports-condition for details.