Getting SyntaxError: Unexpected token, I think it's due to the optional chaining.
ukhanzada-nisum-com opened this issue · comments
Umair Ahmed commented
Environment
"webpack": "^4.44.2",
"@sentry/webpack-plugin": "^2.2.2",
node: 12
Reproduction
When I am trying to build my app it gives me the error if I remove the below line it'll start working.
const { sentryWebpackPlugin } = require("@sentry/webpack-plugin");
Describe the bug
const setup = (plugin) => plugin.esbuild?.setup ?? ((pluginBuild) => {
SyntaxError: Unexpected token.
Additional context
No response
Logs
No response
Anthony Fu commented
We temporarily close this due to the lack of enough information.
Please provide a minimal reproduction to reopen the issue.
Thanks.
Anthony Fu commented
You should upgrade your node. v12 is EOL
pengfei commented
I use node14.19.0 .has same question
pengfei commented