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 have const 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
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
itto 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