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
You should be able to create a vitest.config.ts, and then pass a different auto import configuration to that. The auto configuration in your vite.config.ts should not have vitest in it.
Describe the bug
If any auto import keywords are referenced as defined variable in a callback, an error is thrown
e.g. vitest exports
it
, and if we haveconst filteredArr = arr.filter((it) => it.data)
within our app, an error is thrown.On our side we can fix by renaming
it
to anything else, but it was a little bit of an investigation to find it out.Linked is a simple devbox reproducing the error
Reproduction
https://codesandbox.io/p/sandbox/autoimport-bug-nxn56h
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: