-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Could not resolve "path", could not resolve "os" #3799
Comments
The browser does not provide packages such as |
That plugin (and most esbuild plugins) are meant to run in the Node.js runtime. While your error message seems that you're bundling that plugin into your browser bundle, which is incorrect. |
Definitely I'm building for the browser here. But the odd part is this, it's a project I'm resuming from 1 year, which it was working ok, and now trying to re-build it, and it's complaining with this. That's odd. |
When trying to build a react project doing:
npm run build-dev
I get a lot of Could not resolve "path" Could not resolve "os" Could not resolve "crypto"
And of course the build fails. I'm building for the browser.
I have to note I'm using this plugin:
const envFilePlugin = require('esbuild-envfile-plugin');
The text was updated successfully, but these errors were encountered: