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

Module parse failed: Unexpected token #1038

Open
3 tasks done
akshay-aravind opened this issue Dec 17, 2024 · 1 comment
Open
3 tasks done

Module parse failed: Unexpected token #1038

akshay-aravind opened this issue Dec 17, 2024 · 1 comment

Comments

@akshay-aravind
Copy link

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Electron SDK Version

5.8.0

Electron Version

31.3.0

What platform are you using?

None

Link to Sentry event

No response

Steps to Reproduce

Installed sentry SDK with npx @sentry/wizard@latest -i sourcemaps --saas and I have 4 errors coming up.

  1. ERROR in ./node_modules/@sentry/cli/js/index.d.ts 4:8
    Module parse failed: Unexpected token (4:8)
    You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
    | * Typings for @sentry/cli

  2. Module not found: Error: Can't resolve ... issues with @swc/core, esbuild, uglify-j

Expected Result

I believe this is an issue with webpack configuration but there isn't much info about this issue anywhere

Actual Result

Image

@timfish
Copy link
Collaborator

timfish commented Dec 17, 2024

The ERROR in ./node_modules/@sentry/cli/js/index.d.ts error suggest that the Sentry CLI is being bundled into your app.

I would need a minimal reproduction to be able to give more guidance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants