-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Inconsistency between ng serve and ng build when using Node.js built-ins #29077
Comments
got same problems with Looks like |
I also started getting this issue after updating to
It used to work without any issues before and I inspected the code of these packages they all check what environment they are running in before running those |
bump |
"only 19.0.4 --- I'm currently just observing since the same error occurred with |
…ed during ng serve This commit reverts 06f478b Closes: angular#29077
…ed during ng serve This commit reverts 06f478b Closes: angular#29077
@alan-agius4 Thanks :) |
Command
serve
Is this a regression?
The previous version in which this bug was not present was
19.0.2
Description
After updating the angular cli to 19.0.4, i can no longer serve my project, the issue comes from the usage of pdfjs-dist that includes usage of nodejs build-ins. however i am able to build successfully which contradicts with the goal fc41f50
My expecation is a workaround this build blocking error (probably through the compiler configuration) and the consistency of errors between serving and build.
Minimal Reproduction
here's the repo to reproduce it: https://github.com/Deku-nattsu/nodejs-build-ins-error
stackblitz: https://stackblitz.com/~/github.com/Deku-nattsu/nodejs-build-ins-error
Exception or Error
Your Environment
Anything else relevant?
No response
The text was updated successfully, but these errors were encountered: