-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Can you import @sentry/svelte like this? #6802
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
Comments
@alexbjorlig tried digging into this more, but couldn't get anywhere. Could you provide any kind of reproduction to help us here? Or give some details about your bundling setup? One possible issue could be that you're trying to import client-side code on the server. Where are you calling |
I tried to reproduce - but no luck 😞 Let's just close for now... |
Just for future reference: Also, we're planning on improving SvelteKit support soon (#6692). As suggested, I'm gonna go ahead and close this issue. Let us know if you encounter it again :) |
Discussed in #6791
Originally posted by alexbjorlig January 16, 2023
Trying to migrate @sentry/browser to @sentry/svelte in my approach to support Sveltekit.
However if I import like this:
import { configureScope } from '@sentry/svelte';
I get an error?
Is
@sentry/svelte
really a CommonJS module ?The text was updated successfully, but these errors were encountered: