-
Notifications
You must be signed in to change notification settings - Fork 9
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
Next.js + Webpack incompatibility #928
Comments
The next OpenTelemetry release (changelog) should remove the dependency on There is a customer waiting on the fix that should be notified: Intercom link |
Awesome! I'll keep an eye on this to upgrade the dependencies as soon as it's released. |
Update: something went wrong with that fix -- a further fix was added by @luismiramirez in this PR, and it has now been merged. So the next OpenTelemetry version should include the fix. |
Update update: version 0.45.0 was released, which includes the fix. Let's update the dependencies to bring that in. |
We'll be bumping the dependency range on In the meantime, if you're affected by this issue, running |
Update dependencies in our `package-lock.json` to newer versions. Update the dependency bound for `@opentelemetry/sdk-node` to `^0.45.0` to ensure it brings in the fix for #928.
Update dependencies in our `package-lock.json` to newer versions. Update the dependency bound for `@opentelemetry/sdk-node` to `^0.45.0` to ensure it brings in the fix for #928.
This ensures that the fix for #928 is present.
This ensures that the fix for #928 is present.
This ensures that the fix for #928 is present.
Root report
This was discovered after a customer reported an error related to the
extension.node
binary file throwing an error when being read by Next.js's Webpack.I was able to get through that error by using a third-party loader for webpack that allows you to get Node binary files into the bundle.
Here's how the updated Next.js app config looks after adding the dependency to the project:
Actual issue
After fixing the extension binary file, the app server logged this:
This comes from a package called
ansi-color
, which is the end of a dependency tree that starts from the@opentelemetry/sdk-node
, which is a dependency of our integration.@opentelemetry/sdk-node
@opentelemetry/exporter-jaeger
jaeger-client
thriftrw
bufrw
Another user already reported this issue to the OpenTelemetry team at: open-telemetry/opentelemetry-js#3759. The OpenTelemetry team released a fix for this here: open-telemetry/opentelemetry-js#3739.
I updated our
@opentelemetry/sdk-node
dependency to the latest version with no success. Also found out that other users are in the same situation, so the issue still needs to be closed.OpenTelemetry's team progress on the issue can be tracked here: open-telemetry/opentelemetry-js#3759.
ToDo
The text was updated successfully, but these errors were encountered: