Skip to content

preprocessors throws error in svelte #7726

Closed as not planned
Closed as not planned
@AbhiPrasad

Description

@AbhiPrasad

Discussed in #7723

Originally posted by sagar-siwakoti April 4, 2023
I am using svelte with webpack and while integrating sentry/svelte it throws an error saying

Module not found: Error: Package path . is not exported from package folder path/node_modules/@sentry/svelte/node_modules/magic-string (see exports field in /node_modules/@sentry/svelte/node_modules/magic-string/package.json)

I am integrating it as

`
import * as Sentry from "@sentry/svelte";

Sentry.init({
dsn: //dsn link,
integrations: [new Sentry.BrowserTracing()],
tracesSampleRate: 1.0,
});

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: svelteIssues related to the Sentry Svelte SDK

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions