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
{{ message }}
Repository navigation
Error: Cannot find module '/home/node/app/build/node_modules/@sentry/profiling-node on Sentry initialization. #11241
When I look in node_modules/@sentry/profiling-node/lib/ the files are not there.
I'm installing dependencies with yarn install , and I'm not ignoring scripts
3 - I reached out to Support, they said that node 21 is supported and that I should create an issue here
Expected Result
I think it's normal that the bianaries do not exist for node 21, but I would expect them to be compiled ?
Hey @hassenc thanks for writing in! My educated guess is that the platform binaries are not (yet) supported.
I'm gonna tag @JonasBa - would you mind taking a look? Thanks!
Just found a reply from Jonas in a similar issue (#10787 (comment)) saying that we attempt to compile the binary for your platform if we don't ship a precompiled binary. Can you check if you ignore scripts somewhere that would prevent compilation?
@hassenc If there are no errors, then the binary should be there. Are you running these commands from inside Docker? If there are no errors, then the binary should have been generated, can you verify that?
I wouldnt recommend updating the Docker image just yet, as we dont know yet what the actual issue is. From what I understand, you are saying that building the binaries from inside docker does not error, but the file is also not present, which is very odd.
I was testing on a different environment.
I built the Docker image locally and I do get this error
If I add this line,RUN apk add g++ make py3-pip The file is created, but the build takes longer (x3)
Do you have an idea about when this pre-built binary will be available ?
@hassenc yes, so indeed, the build fails and something swallows the error - I'm not exactly sure what, but if you do find out what makes this error invisible I'd love to know as we want it to throw at install time. I may investigate this myself, it's just not a big priority right now.
Like @AbhiPrasad said, we dont officially support non LTS Node versions, so the answer is very likely never for v21. That said, you can expect us to ship prebuilt binaries for version 22 (iirc there is currently no release date) when it enters LTS stage. My advice would be to downgrade to v20 where the binaries are available or install the correct tooling and compile from source, which slows down your docker build process like you noticed. You can likely speed up that part by leveraging a local or remote build cache for your image, which should make things substantially faster as you wont be reinstalling these expensive dependencies each time you build your docker image
Activity
Lms24 commentedon Mar 22, 2024
Hey @hassenc thanks for writing in! My educated guess is that the platform binaries are not (yet) supported.
I'm gonna tag @JonasBa - would you mind taking a look? Thanks!
Lms24 commentedon Mar 22, 2024
Just found a reply from Jonas in a similar issue (#10787 (comment)) saying that we attempt to compile the binary for your platform if we don't ship a precompiled binary. Can you check if you ignore scripts somewhere that would prevent compilation?
hassenc commentedon Mar 22, 2024
As I said in the first message, I'm running
yarn installto install dependencies. I'm not ignoring scriptsAbhiPrasad commentedon Mar 22, 2024
We don't support Node 21 yet for the prebuilt binaries, we only generate binaries for Node 16-20.
I opened a PR to our docs to make this more clear getsentry/sentry-docs#9540
I don't think we'll be adding support for pre-building binaries to non-LTS versions of Node because of the potential instability of the ABI.
2 remaining items
JonasBa commentedon Mar 22, 2024
@hassenc If there are no errors, then the binary should be there. Are you running these commands from inside Docker? If there are no errors, then the binary should have been generated, can you verify that?
I wouldnt recommend updating the Docker image just yet, as we dont know yet what the actual issue is. From what I understand, you are saying that building the binaries from inside docker does not error, but the file is also not present, which is very odd.
hassenc commentedon Mar 25, 2024
I was testing on a different environment.
I built the Docker image locally and I do get this error
If I add this line,
RUN apk add g++ make py3-pipThe file is created, but the build takes longer (x3)Do you have an idea about when this pre-built binary will be available ?
Thank you
JonasBa commentedon Mar 25, 2024
@hassenc yes, so indeed, the build fails and something swallows the error - I'm not exactly sure what, but if you do find out what makes this error invisible I'd love to know as we want it to throw at install time. I may investigate this myself, it's just not a big priority right now.
Like @AbhiPrasad said, we dont officially support non LTS Node versions, so the answer is very likely never for v21. That said, you can expect us to ship prebuilt binaries for version 22 (iirc there is currently no release date) when it enters LTS stage. My advice would be to downgrade to v20 where the binaries are available or install the correct tooling and compile from source, which slows down your docker build process like you noticed. You can likely speed up that part by leveraging a local or remote build cache for your image, which should make things substantially faster as you wont be reinstalling these expensive dependencies each time you build your docker image
bzhn commentedon Dec 29, 2024
Switching from node v23.4.0 to v22.12.0 helped me solve this issue.
JefferyHus commentedon Sep 4, 2025
How to check which node version is supported and which is not for prebuilt binaries?