-
Notifications
You must be signed in to change notification settings - Fork 540
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
vite build for browser pulling in node built-in modules #1892
Comments
Same issue using rollup.js
|
This is fixed by open-telemetry/opentelemetry-js#4386, the new release will take care of it (we plan to release early next week) |
Hi @pichlermarc ! Good job! I tried to upgrade all open telemetry packages but still seeing this error from
|
Hi @imWildCat, we still need to release this repo before the bug is fixed (we released core today and it has the fix, but we have not updated the packages in this repo yet). |
@pichlermarc got it! thank you so much! |
+1 on this, tysm for getting to it so fast! |
We finally managed to get everything sorted out. Sorry that this took so long. |
is this solved? I still experiencing the same issue with the latest version, in my case all packages are installed by faro-react but I manually added instrumentation, api and sdk-node, am I missing something? |
It should be. I'm not sure how faro works, but I think it'll pull in older versions of |
Quick update, overwriting works thanks, faro-web-tracking keeps pulling 0.34.0 |
@alexandprivate sorry for the delay on the Faro side of things - we will be bumping dependencies and cutting a release today/tomorrow. thanks @pichlermarc for keeping us up to date and getting this fix rolled out 🙏🏼 |
What version of OpenTelemetry are you using?
Using latest versions of packages.
What version of Node are you using?
Node 20
What did you do?
Running
vite build
(using version 4 of vite) will throw the following error.You will also get a warning about
What did you expect to see?
I would expect browser based builds to not pull in any node built-ins, so that there is no need to polyfill them and thus help to keep bundle sizes smaller.
Additional context
The text was updated successfully, but these errors were encountered: