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
TypeError: __vite_ssr_import_1__.Synth is not a constructor in new Sveltekit project. #1230
Comments
I'm not familiar with vite, but just judging by the error, it says |
With 14.9.17 is there any changes to how we should import Tone? This could be the same error, I'm also using
The same code works ok with 14.7.77. |
I think I have to initialize it inside the onmount. I just switched it to include it from a CDN and everything works but I read onmount is where code should be placed inside a svelte project. |
@yl92 could you try |
Thank you @tambien , |
Glad you got it working! |
Describe the bug
I created a totally new sveltekit project (i tried both v4 and v5 of svelte)
added tone using npm i tone.
imported tone using
I get this error
TypeError: vite_ssr_import_1.Synth is not a constructor
The text was updated successfully, but these errors were encountered: