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
After updating vitest from v0.31.4 to v0.32.0, import of some files fails. Error: Cannot find module '*.svg?.tsx'
I created my own plug-in (reactSvgr), imported SVG files with an extension like * .svg?.tsx, and used it as a React component.
In the latest vitest, it stopped working, probably because they didn't apply the plugin.
This seems to be a regression of the change made from this pull request: #3307.
While I believe that change was necessary, I am currently facing difficulties due to this regression.
Describe the bug
After updating vitest from v0.31.4 to v0.32.0, import of some files fails.
Error: Cannot find module '*.svg?.tsx'
I created my own plug-in (reactSvgr), imported SVG files with an extension like
* .svg?.tsx
, and used it as a React component.In the latest vitest, it stopped working, probably because they didn't apply the plugin.
This seems to be a regression of the change made from this pull request: #3307.
While I believe that change was necessary, I am currently facing difficulties due to this regression.
Reproduction
https://github.com/kazuma1989/vitest-issue-3307
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: