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
This is something that used to work without needing this extra config (I think when the vitest config in vue-create was placed directly in vite.config.js).
Is this a regression, an unsupported configuration, or have I found the correct fix and it just needs some extra documentation?
Many thanks.
The text was updated successfully, but these errors were encountered:
Using create-vue to scaffold a vue3 JavaScript project with vitest using something like:
Gives the following
yarn lint
error (amongst a couple of other, understandable syntax complaints):However, running
yarn vitest
works - the import is fine.I believe this is because the node_modules file is actually
vitest/config.d.ts
(which exports the js file in dist).__
As a workaround I've been able to avoid the warning by specifying and adding
.d.ts
to the resolver's extensions in.eslintrc.cjs
:__
This is something that used to work without needing this extra config (I think when the vitest config in vue-create was placed directly in
vite.config.js
).Is this a regression, an unsupported configuration, or have I found the correct fix and it just needs some extra documentation?
Many thanks.
The text was updated successfully, but these errors were encountered: