"All projects should have unique names" #3939
-
What does this line in the documentation mean? Names where? Defined where? All the projects in my monorepo certainly have unique names defined by their package.json file. Yet, setting up If I change the workspace to |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Can you show your project folder structure and vite/vitest config files. Name is |
Beta Was this translation helpful? Give feedback.
-
I'm seeing the same issue. I don't have a // vitest.workspace.ts
export default ['packages/*']; My project structure is
|
Beta Was this translation helpful? Give feedback.
-
I got this working! The Vitest workspace documentation is very opaque, and this error has nothing to do with the problem. In my case:
The way I get this working was to have a Vitest Workspace that looks like: import { defineWorkspace } from 'vitest/config'
export default defineWorkspace([
'packages/*/vitest.config.ts'
]) Essentially, Vitest will complain about names needing to be unique because it... I dunno, but whatever the Vitest documentation says is false. It won't use the package (folder) names and will fail. |
Beta Was this translation helpful? Give feedback.
-
Also having this issue, except it seems to think that every package is duplicated when they are not, happening after upgrading to 2.1.0 |
Beta Was this translation helpful? Give feedback.
I got this working! The Vitest workspace documentation is very opaque, and this error has nothing to do with the problem.
In my case:
The way I get this working was to have a Vitest Workspace that looks like:
Essentially, Vitest will complain about names needing to be unique because it... I dunno, but whatever the Vitest documentation says is false. It won't use the package (folder) names and will fail.