-
Notifications
You must be signed in to change notification settings - Fork 36
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
SyntaxError: Unexpected token ‘(’ when importing @sentry/webpack-plugin in custom-webpack #592
Comments
Hi, I cannot reproduce this locally with the steps you provided. Would you mind sharing a small reproduction example in the form of a repo or stackblitz? Thanks! |
Hi! Of course, here is the repo. You can reproduce the issue by running 'npm run build' or 'npm run start'. Thanks for your reply! sentry-demo-repo The issue is not accurately reproduced on StackBlitz, but it does occur when running the repository locally. Here is the StackBlitz link. |
Hi, can you try bumping your node version to version 14.6.0? |
Hi, Of course, I bumped my Node.js version to 14.6.0 and reinstalled @sentry/webpack-plugin. @sentry/webpack-plugin has been bumped to version 2.22.3. However, I encountered a new issue: [error] Error: Cannot find module 'node:path' Here is the repo: BTW, is there an alternative way to solve this without bumping the Node.js version? |
Likely no. I have to admit we (I) kinda fucked up by specifying the node version range in the engines field to |
An error occurred while trying to import the @sentry/webpack-plugin in custom-webpack.config.js.
Environment
npm: v14.2.0
@angular/core: 10.2.5
webpack: 4.46.0
@angular-builders/custom-webpack: 10.0.1
@sentry/angular : 7.75.1
@sentry/tracing: 7.75.1
@sentry/webpack-plugin: 2.22.2
Steps to Reproduce
Expected Result
no error
Actual Result
[error] /node_modules/@sentry/bundler-plugin-core/node_modules/minimatch/dist/cjs/ast.js:86
#fillNegs() {
^
SyntaxError: Unexpected token '('
The text was updated successfully, but these errors were encountered: