-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Self-hosted/on-premise
Which SDK are you using?
@sentry/nuxt
SDK Version
9.17.0
Framework Version
3.17.2
Link to Sentry event
No response
Reproduction Example/SDK Setup
fresh install no custom config other than the self hosted server
https://github.com/skoenfaelt/sentry-deploy-bug/tree/main
Steps to Reproduce
- build your project with sentry setup
- open this folder path
.output\server\node_modules\@sentry\node\node_modules\@opentelemetry\semantic-conventions
- 'index.js' is not present.
Full Error Log (hidden user path)
node:internal/modules/esm/resolve:215
const resolvedOption = FSLegacyMainResolve(packageJsonUrlString, packageConfig.main, baseStringified);
^
Error: Cannot find package '...\server\node_modules@sentry\node\node_modules@opentelemetry\semantic-conventions\index.js' imported from ...\server\node_modules@sentry\node\build\esm\integrations\tracing\koa.js
at legacyMainResolve (node:internal/modules/esm/resolve:215:26)
at packageResolve (node:internal/modules/esm/resolve:841:14)
at moduleResolve (node:internal/modules/esm/resolve:927:18)
at defaultResolve (node:internal/modules/esm/resolve:1169:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:542:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:510:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:239:38)
at ModuleWrap. (node:internal/modules/esm/module_job:96:40)
at link (node:internal/modules/esm/module_job:95:36) {
code: 'ERR_MODULE_NOT_FOUND'
}
Node.js v20.18.0
"dependencies": {
// ...
"@sentry/nuxt": "^9.17.0",
"nuxt": "^3.17.2",
"vue": "^3.5.13",
"vue-router": "^4.5.1"
},
"overrides": {
"@vercel/nft": "^0.27.4"
}
Expected Result
I assume that the website is loading.
Actual Result
The website is not loading, creating an error log.
If I run the proj build locally in my proj folder it runs. As soon as I copy the contents of the .output folder to my IIS its not working anymore. I assume its working locally because the whole node_modules are present.
I also have removed my node_modules folder and my bun.lock > fresh install without cache bun i --no-cache
could linked to #15628 (comment)
Metadata
Metadata
Assignees
Projects
Status