vike: esbuild bug macOS resolve `Could not resolve "vike-react/config" [plugin vike-esbuild]`
Description
Describe the bug
After starting a new project with the command pnpm create @batijs/app --react, installing dependencies and running dev mode the console shows an error
[vike][config] Failed to transpile /pages/+config.ts because:
✘ [ERROR] Could not resolve "vike-react/config" [plugin vike-esbuild]
To Reproduce
Steps to reproduce the behavior, run the following commands in order:
pnpm create @batijs/app --react
cd my-app
pnpm i && pnpm run dev
Expected behavior Run dev mode without any errors
Screenshots
Additional context Using macOS Ventura 13.6.6, also I have updated node, pnpm, typescript and all libs versions to match the versions on stackblitz demo (which I know works), still the problem persists. I also tried installing the dependencies from the stackblitz lockfile.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 42 (24 by maintainers)
Commits related to this issue
- debug #1729 — committed to vikejs/vike by brillout 2 years ago
- debug #1729 — committed to vikejs/vike by brillout 2 years ago
- enforce latest esbuild version (#1729) — committed to vikejs/vike by brillout 2 years ago
- temp debug logs (#1729) — committed to vikejs/vike by brillout 2 years ago
- workaround draft #1729 — committed to vikejs/vike by brillout 2 years ago
- update vike that includes workaround (vikejs/vike#1729) — committed to brillout/vike-debug-esbuild-cannot-resolve-1729 by brillout 2 years ago
- fix: workaround esbuild bug macos resolve (fix #1729) — committed to vikejs/vike by brillout 2 years ago
@beku8 Great! Can you confirm this reproduction reproduces the error on your machine? If it does then I’ll create a bug report at esbuild’s repository. What macOS version are you using? Anything special about your macOS installation (e.g. any virtual machine)?
Workaroud released in
0.4.201.