-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Yarn PNP still not working on Windows #3361
Comments
I've managed to get esbuild to build this simple project by changing cache folder to \yarn.cache
|
The next step was to add some plugins (for example esbuild-plugin-less, esbuild-plugin-copy,esbuild-plugin-svgr), build.mjs (settings the same parameters)
and add new script line in package.json
Run it:
The question is how to use esbuild API to enable plugins? |
In fact it does. I have just found how.
So now we can you esbuild script with yarn. Next step is to enable some plugins.
import { lessLoader } from 'esbuild-plugin-less' ...
|
For your initial problem, Your later problem aren't related to Esbuild, so I'd tend to close this issue and let you open a new one on the Yarn tracker - but I encourage you to post a full repro, with the exact error messages you get. |
Here is another example with this kind of error. {
"name": "Bug,
"packageManager": "[email protected]",
"type": "module",
"scripts": {
"build": "esbuild index.js --bundle --outfile=test.js --platform=node --target=node20 --log-level=verbose"
},
"dependencies": {
"@aws-sdk/client-secrets-manager": "^3.535.0",
"@aws-sdk/rds-signer": "^3.535.0",
"postgres": "^3.4.3"
},
"devDependencies": {
"esbuild": "^0.20.2"
}
}
fails with
|
Hi,
just gave esbuild+Yarn pnp a fresh try, but still not getting it working despite being declared as compatible.
The smallest ever setup fails to load react libs.
Platform: Windows 11.
Separate cache folder for PNP used on build machines to avoid redownloading/relinking node_modules due to clean check outs.
package.json
index.js
Steps to reproduce:
My results:
Hope this helps to pinpoint and fix the issue.
Cheers,
Lex
The text was updated successfully, but these errors were encountered: