-
Notifications
You must be signed in to change notification settings - Fork 37
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
sentryWebpackPlugin is using esbuild bundler from unplugin #305
Comments
Ok after few iterations this import/require |
[UPDATE]
I'll try to create isolated steps to reproduce this issue. Or if you see any problems with this approach at this point? |
This is very likely because you're using node < 14 which is the first version that supports optional chaining. Can you try node version 14? |
I'm using node 16.13.1. I think it is due to |
Ok I can't get it to work with For example one of the errors if you have maybe idea where is the problem?
My rules for webpack
|
Ok workaround (from here: privatenumber/tsx#113) using swc worked. I think we can close this issue since there are alternatives to solve it. Not sure if you want to support |
Thank you for investigating and the workaround. Closing because this problem seems a bit niche. |
I am also getting optional chaining issues.. in my case node version is 12. const setup = (plugin) => plugin.esbuild?.setup ?? ((pluginBuild) => { SyntaxError: Unexpected token '.' |
This plugin only supports Node >= 14 |
Environment
Steps to Reproduce
import { sentryWebpackPlugin } from '@sentry/webpack-plugin';
inwebpack.config.babel.js
where I defined and callsentryWebpackPlugin
like this:main.js
in.storybook
I've importedconst webpackConfig = require('esm')(module)('../build/webpack.config.babel').default;
and just check themode
package.json
"storybook": "start-storybook -p 6006 --no-manager-cache",
Expected Result
Everything starts when I run
yarn storybook
Actual Result
Unplugin was called with esbuld getter somehow, can't track it where it is in this plugin, but it is here because if I comment out the import of
import { sentryWebpackPlugin } from '@sentry/webpack-plugin';
it starts to work alright.The text was updated successfully, but these errors were encountered: