Repository navigation
Closed as not planned
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?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/node
SDK Version
7.102.0
Framework Version
Node v20.9.0
Link to Sentry event
No response
SDK Setup
// configure sentry to capture logs
Sentry.init({
dsn: process.env.sentry_DSN,
integrations: [
// enable HTTP calls tracing
new Sentry.Integrations.Http({ tracing: true }),
// enable express.js middleware testing
new Sentry.Integrations.Express({ app }),
new ProfilingIntegration(),
],
// Performance Monitoring
tracesSampleRate: 1.0, // Capture 100% of the transactions
// Set sampling rate for profiling - this is relative to tracesSampleRate
profilesSampleRate: 1.0,
});Steps to Reproduce
I just installed @sentry/profiling-node and @sentry/node
I followed installation instruction
ran npm run dev
Expected Result
$ npm run dev
> [email protected] dev
> nodemon server
[nodemon] 3.0.1
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,cjs,json
[nodemon] starting `node server.js`
server is on 5002
MongoDB Connected: localhostActual Result
$ npm run dev
> [email protected] dev
> nodemon server
[nodemon] 3.0.1
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,cjs,json
[nodemon] starting `node server.js`
node:internal/modules/cjs/loader:1051
throw err;
^
Error: Cannot find module 'C:\Users\Allahisrabb\Desktop\repository\SMS\node_modules\@sentry\profiling-node\lib\sentry_cpu_profiler-win32-ia32-115.node'
Require stack:
- C:\Users\Allahisrabb\Desktop\repository\SMS\node_modules\@sentry\profiling-node\lib\index.js
- C:\Users\Allahisrabb\Desktop\repository\SMS\server.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)
at Module._load (node:internal/modules/cjs/loader:901:27)
at Module.require (node:internal/modules/cjs/loader:1115:19)
at require (node:internal/modules/helpers:130:18)
at importCppBindingsModule (C:\Users\Allahisrabb\Desktop\repository\SMS\node_modules\@sentry\profiling-node\lib\index.js:2481:12)
at Object.<anonymous> (C:\Users\Allahisrabb\Desktop\repository\SMS\node_modules\@sentry\profiling-node\lib\index.js:2483:36)
at Module._compile (node:internal/modules/cjs/loader:1241:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Module._load (node:internal/modules/cjs/loader:938:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Users\\Allahisrabb\\Desktop\\repository\\SMS\\node_modules\\@sentry\\profiling-node\\lib\\index.js',
'C:\\Users\\Allahisrabb\\Desktop\\repository\\SMS\\server.js'
]
}
Node.js v20.9.0
[nodemon] app crashed - waiting for file changes before starting...Metadata
Metadata
Assignees
Projects
- StatusShow more project fieldsWaiting for: Community
Activity
Lms24 commentedon Feb 22, 2024
Hey @Abdussalam-Mujeeb-ur-rahman thanks for writing in! If you take a look in
node_modules\@sentry\profiling-node\lib, are there any files in there? If yes, is the one in there that you get the error message for?also cc @JonasBa any idea what might be going on here?
Abdussalam-Mujeeb-ur-rahman commentedon Feb 22, 2024
lforst commentedon Feb 23, 2024
I think
win32-ia32is an unsupported platform at the moment. We would need to add a binary for that I believe.JonasBa commentedon Feb 23, 2024
@Abdussalam-Mujeeb-ur-rahman @lforst is correct, that is not part of our supported platforms so we don't ship a precompiled binary. That said, the binary should attempt to compile itself from source on unsupported platforms as part of the installation process. The only reason where it wouldn't do that is if you are installing with --ignore-scripts option or if your npm config has ignore-scripts set to true (you can validate that with
npm config get ignore-scriptswhich should return false)Can you please validate that ignore scripts is not disabling the scripts from compiling? If it's set to false, would you mind cd into node_modules/@sentry/profiling-node and running the
build:bindings:configureandbuild:bindingsscripts and letting us know if they output any errors?getsantry commentedon Mar 22, 2024
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you remove the label
Waiting for: Community, I will leave it alone ... forever!"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀