-
Notifications
You must be signed in to change notification settings - Fork 28.4k
Next.js Instrumentation can not import and resolve the node-bindings module. #64471
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
Comments
I'm having the same issue, with Application Insights. This issue was introduced with Dependencies
Output on
|
This comment has been minimized.
This comment has been minimized.
@KasperAndersson did you find any solution or work around? We are experiencing the same issue. |
Hi @andrem0 |
I got a simular error. The error is below.
Is there a way to call once at server-side without |
@KasperAndersson I had similar issue, check if your OTEL dependecies have the same versions. |
This worked for me in case you wanna try it. Next.js version: 14.2.23
|
As a general note, we're having a similar issue in Next.js 13.5.8 where requiring files in |
my solution to this problem: add I also had issues trying to use |
Link to the code that reproduces this issue
https://github.com/bugs-report/nextjs-issue-64471
To Reproduce
First, install a node-binding package, like the
@napi-rs/tar
, which provides the rust bindings and.node
bytecode module.And then enable the next.js instrumentation with the official document
In next.config.js
In instrumentation.ts, import the node-binding module
Then run project in dev, it crashed
Current vs. Expected behavior
It should import the node-bindings module in
instrumentation.ts
Provide environment information
Which area(s) are affected? (Select all that apply)
Not sure
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
No response
The text was updated successfully, but these errors were encountered: