All build scripts fail when creating a new vite project in a Yarn monorepo #10652
Closed
7 tasks done
Labels
p4-important
Violate documented behavior or significantly improves performance (priority)
regression
The issue only appears after a new release
Describe the bug
I created a Vite project inside a monorepo managed with Yarn workspaces. I created a new Vite project (
react-ts
template) inside the monorepo, installed its dependencies, and ran it withyarn dev
.I have tried with
vue-ts
,react-ts
, andvanilla-ts
. The only config that worked wasvanilla-ts
It appears that any template that produces avite.config.ts
file fails.Expected
Should run Vite project dev server.
Actual
Fails with a number of errors
Reproduction
https://github.com/hansoksendahl/vite-bug
Steps to reproduce
$ mkdir [REPO_NAME]
$ cd [REPO_NAME]
$ yarn init -2
$ mkdir packages
$ cd packages
$ yarn create vite vite-project --template react-ts
$ cd vite-project
$ yarn
$ yarn dev
System Info
Used Package Manager
yarn
Logs
Click to expand!
Validations
The text was updated successfully, but these errors were encountered: