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
[Bug Report] ESM Error on Electron SDK #845
Comments
@timfish they also attached a |
using Windows error message:
|
I'm not 100% sure what's happening here without seeing more of the app config and code. It looks like the code is being loaded as CJS but it has imports in it (ie. Are they trying to bundle the main process code to ESM or CJS? Webpack doesn't have great ESM output support and It's currently behind an experimental flag. My guess is that they're attempting to target ESM with TypeScript, Webpack is outputting CJS and because the output file extension is |
There is a beta available of v5 of the Electron SDK which uses v8 of the JavaScript SDKs. There is much improved ESM support. |
v5.0.0 of the Electron SDK has now been released which uses v8 of the JavaScript SDKs with improved ESM support. Feel free to re-open this or a new issue if problems still persist! |
Customer info in private repo https://github.com/getsentry/team-replay/issues/402
After installing Electron SDK with following
package.json
they get ESM errors when running sdk in main process.Electron v28
Sentry SDK version
4.20.0
package.json
:The text was updated successfully, but these errors were encountered: