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

Errors updating to 3.0.0/3.0.1 with Svelte / Vite #2725

Open
marklbarlow opened this issue Aug 29, 2024 · 3 comments
Open

Errors updating to 3.0.0/3.0.1 with Svelte / Vite #2725

marklbarlow opened this issue Aug 29, 2024 · 3 comments

Comments

@marklbarlow
Copy link

Bug Report

Using Svelte / Vite and upgrading from v2 to v3, I get a strange import error.

Screenshot 2024-08-29 at 20 18 08

Issue is reproduced in this repo:

https://github.com/marklbarlow/perspective-svelte

with the changes for v3 in this commit:

marklbarlow/perspective-svelte@7b262c5

What am I missing?

@Nipunx1999
Copy link

might wanna see #2724 i faced a similar issue i think it has something to with how the packages are being loaded )remember reading something briefly in the release on changes to javascript) not sure, but passing the PerspectivePlugin to my webpack config resolved the issue i think it might work out for you too.

@marklbarlow
Copy link
Author

I’m using vite (which uses esbuild under the hood) rather than webpack, but I did try the esbuild plugin as well. Still didn’t have any luck unfortunately. As the authors have mentioned in a different thread, I think the plugins are just there to help reduce bundle size rather than being mandatory, so hopefully it’s just a config option I missing?

@Nipunx1999
Copy link

Im not entirely sure, but in my case unless i added the plugin the build itself would fail this never happened before verson 3.0 i didnt use anything extra earlier.

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

No branches or pull requests

2 participants