You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
node:internal/modules/esm/resolve:842
throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base), null);
^
Error [ERR_MODULE_NOT_FOUND]: Cannot find package '_sentry-debug-id-injection-stub' imported from /Users/guillaume/Projects/magemetrics/experiments/tsup-sentry/my-app/dist/index.mjs
at packageResolve (node:internal/modules/esm/resolve:842:9)
at moduleResolve (node:internal/modules/esm/resolve:915:18)
at defaultResolve (node:internal/modules/esm/resolve:1132:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:557:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:526:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:249:38)
at ModuleJob._link (node:internal/modules/esm/module_job:126:49) {
code: 'ERR_MODULE_NOT_FOUND'
}
Analysis
When looking at the file in the dist folder it is indeed starting with this strange import:
But I have to say that I'm a bit confused about its purpose, and I can't find any documentation regarding this, I must do something wrong.
I have create a repo to reproduce that: https://github.com/ex0ns/sentry-tsup (i uploaded the output in the dist folder).
I could try to work on a fix or at least provide more information on this issue, but I don't know what would be the easiest way to test or at least debug that, any pointer welcome !
Environment
@sentry/esbuild-plugin: 2.22.4
tsup: 8.3.0
Steps to Reproduce
Expected Result
Running the application with Sentry enabled.
Actual Result
Analysis
When looking at the file in the
dist
folder it is indeed starting with this strange import:Which lead me to this part of the plugin:
sentry-javascript-bundler-plugins/packages/esbuild-plugin/src/index.ts
Line 45 in 75a5d1d
But I have to say that I'm a bit confused about its purpose, and I can't find any documentation regarding this, I must do something wrong.
I have create a repo to reproduce that: https://github.com/ex0ns/sentry-tsup (i uploaded the output in the
dist
folder).I could try to work on a fix or at least provide more information on this issue, but I don't know what would be the easiest way to test or at least debug that, any pointer welcome !
I think this is related to #608 #445
The text was updated successfully, but these errors were encountered: