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 Screenshot 2024-07-03 at 17 53 27

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

Most upvoted comments

@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.