rollup-plugin-svelte icon indicating copy to clipboard operation
rollup-plugin-svelte copied to clipboard

Bump peerDep to support svelte 5

Open mhkeller opened this issue 9 months ago • 4 comments

I'm currently getting an npm error when I try to include this in a project that uses svelte 5 because I think npm needs to specifically be told to add beta tags: https://classic.yarnpkg.com/en/docs/dependency-versions#toc-pre-release-tags

mhkeller avatar May 02 '24 05:05 mhkeller

I believe I'm also in need of this.

webJose avatar May 12 '24 23:05 webJose

Same here, Svelte 4 is installed in our packaged build environment because of the this peer dependency

image

This causes warnings at build time

image

And this error in the application

Your application, or one of its dependencies, imported from 'svelte/internal', which was a private module used by Svelte 4 components that no longer exists in Svelte 5. It is not intended to be public API. If you're a library author and you used 'svelte/internal' deliberately, please raise an issue on https://github.com/sveltejs/svelte/issues detailing your use case.

We still need support for Svelte 4 though since we still got legacy apps using the same build environment.

To move forward we added an overrides entry to package.json

{
  "overrides": {
     "svelte": "^5.0.0-next.260"
  } 
}

kling90 avatar Oct 02 '24 06:10 kling90

This is only an issue with the beta. The warning will go away once the final version is released

benmccann avatar Oct 02 '24 21:10 benmccann