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
davidmeirlevy
changed the title
components from __mocks__ library appears in console warnings
components from __mocks__ library appear in console warnings
Sep 11, 2024
Describe the bug
I use this library to add vuetify / element-plus components.
when I run
vite
dev en environment, I get this warning at the terminal console:[unplugin-vue-components] component "FormComponent"(/dev/my-app/__mocks__/FormComponent.vue) has naming conflicts with other components, ignored.
I tried to make it ignore the mocks, but without any success. here's a sample of my vite config:
I also tried to exclude the mocks using regex, like
/[\\/]__mocks__[\\/]/
or/__mocks__/
.It looks like something I assumed should be ignored by default. isn't it?
Is there maybe something wrong with my vite config?
Thanks.
Reproduction
https://stackblitz.com/edit/vitejs-vite-miygrx?file=vite.config.js
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: