Skip to content
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

Uppy and Svelte 5 #5475

Open
frederikhors opened this issue Sep 28, 2024 · 2 comments
Open

Uppy and Svelte 5 #5475

frederikhors opened this issue Sep 28, 2024 · 2 comments
Labels

Comments

@frederikhors
Copy link
Contributor

frederikhors commented Sep 28, 2024

Using uppy with latest Svelte 5 build I get this error:

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.

I will post more details as soon as I know more.

"@sveltejs/vite-plugin-svelte": "4.0.0-next.7",
"@uppy/core": "4.2.0",
"@uppy/dashboard": "4.1.0",
"@uppy/drag-drop": "4.0.2",
"@uppy/progress-bar": "4.0.0",
"@uppy/status-bar": "4.0.3",
"@uppy/svelte": "4.0.2",
"@uppy/xhr-upload": "4.2.0",
"svelte": "5.0.0-next.260",
@frederikhors
Copy link
Contributor Author

Ok. So the issue is with @uppy/[email protected].

4.0.1 is broken.

4.0.0 works.

@Murderlon
Copy link
Member

This is what changed in that version: #5446. Seeing no errors in package.json: https://publint.dev/@uppy/[email protected]. However the types do not resolve correctly: https://arethetypeswrong.github.io/?p=%40uppy%2Fsvelte%404.0.2

Maybe it's related to the rollup script changes in relation to the export fields:

"exports": {
".": {
"types": "./lib/index.d.ts",
"svelte": "./lib/index.js"
},
"./package.json": "./package.json"
},

@aduh95 do you have a hunch since you recently touched it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants