Skip to content
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

Warning in the console #1648

Closed
marcofugaro opened this issue Oct 1, 2021 · 3 comments
Closed

Warning in the console #1648

marcofugaro opened this issue Oct 1, 2021 · 3 comments

Comments

@marcofugaro
Copy link

I updated esbuild to version 0.13.x, and now I get a ton of this kind of warnings in the console.

Everything still works fine tough.

image

For context, I own a MacBook Air with an M1 processor.

@geoffharcourt
Copy link

geoffharcourt commented Oct 1, 2021

This is because esbuild now has optional dependencies for every potential platform. These are harmless warnings (albeit noisy), but the optional dependencies are a workaround for some behaviors in Yarn 2 that broke installation on some platforms.

See here:
#1621

@evanw
Copy link
Owner

evanw commented Oct 1, 2021

These log messages are irrelevant and useless and can be ignored. Up-to-date versions of npm won't print these useless log messages, so you can update npm to avoid these if you don't want to see them. You may also be able to keep using the same version of npm but adjust the loglevel setting to not see these useless log messages, although I haven't ever tried that myself so I'm not sure about that. Anyway this is a problem with your package manager, not with esbuild.

@marcofugaro
Copy link
Author

Indeed, I am using Yarn classic v1

Thanks for the info!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants