You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using esbuild on windows and noticed that since version 0.15.0 packages can't be resolved properly. I'm also using WSL with Ubuntu without this issue.
I'm unable to reproduce this. I don't have access to a Windows machine myself but I ran the following on Windows in CI and it worked:
mkdir a
cd a
npm init -y
npm i esbuild@0.14.54 react@18.2.0
echo "export * from 'react';" > input.js
echo "require('esbuild').build({entryPoints:['input.js'],bundle:true,outfile:'out.js'}).catch(()=>process.exit(1));" > esbuild.js
node ./esbuild.js
cd ..
mkdir b
cd b
npm init -y
npm i esbuild@0.15.0 react@18.2.0
echo "export * from 'react';" > input.js
echo "require('esbuild').build({entryPoints:['input.js'],bundle:true,outfile:'out.js'}).catch(()=>process.exit(1));" > esbuild.js
node ./esbuild.js
cd ..
I'm guessing you have a parent directory with a Yarn PnP package manifest. If that's the case, you'll need to tell Yarn to exclude the folder you're currently trying to build in using ignorePatternData. See #2495 for an example of this case. This will likely need a newer version of esbuild than 0.15.0 since support for ignorePatternData was improved in version 0.15.8.
Edit: In any case, adding the logLevel: 'debug' option should provide more information about what specifically is failing.
Good day!
OS Version: Windows11
21H2
Node Version:
16.17.0
I'm using
esbuild
on windows and noticed that since version0.15.0
packages can't be resolved properly. I'm also usingWSL
with Ubuntu without this issue.I've created a minimal example:
When I'm running
node esbuild
with the0.14.54
version, everything works. With version0.15.0
and above I'm getting:I've also attached a video for you.
2022-09-30.15-05-35.mp4
The text was updated successfully, but these errors were encountered: