-
Notifications
You must be signed in to change notification settings - Fork 828
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
Cannot find module 'OTLPTraceExporter' imported from /app/server/index.mjs #5218
Comments
Hi, thanks for reaching out - I've looked into this and found some weird behavior around comments when building with Nuxt. Going from 0.52.1 to 0.53.0, we added this comment here:
It's absolutely astonishing, but removing that comment above, here and here for some reason makes it work. I narrowed it down to the string I'm fairly certain that this is a bug or limitation with the build tooling that's in use here. Does anyone have an insight/link to what I may be looking at? |
I made a reproducer so that we can verify that changing the comment actually fixes things: |
Self assigning since I have a fix at #5227 |
Hi @pichlermarc, thank you for this fix. Do you know when is the next release date? As we are stuck due to this. |
please see #5232 for tracking release progress 🙂 |
Description
We are importing
@opentelemetry/exporter-trace-otlp-http
in our setup code. Everything was working fine till v0.52.1, but the following error is coming after updating to v0.53.0. The error is coming when we are starting the node server.Error message
Additional Details
@opentelemetry/exporter-trace-otlp-http
was present in the package.json of the build dir.output
. And was also imported in theindex.mjs
file. After the update, it is not present in the above places, and instead, its code is inline in the server chunkindex.mjs
.OpenTelemetry Setup Code
package.json
Relevant log output
No response
Operating System and Version
No response
Runtime and Version
The text was updated successfully, but these errors were encountered: