vite-svg-loader
vite-svg-loader copied to clipboard
vite svg loader with typescript gives error when running jest test
Configuration error:
Could not locate module @assets/images/icon-calendar.svg?component mapped as:
/Users/ahmedyagoub/plankk/phoenix/src/assets/$1.
Please check your configuration for these entries:
{
"moduleNameMapper": {
"/@assets\/(.*)/": "/Users/ahmedyagoub/plankk/phoenix/src/assets/$1"
},
"resolver": undefined
}
```
Hi, thanks for reporting. Could you maybe share your project (or a test project) so I can reproduce this error, and investigate how to resolve it.
How would you map it in Jest I am using the svg loader in vue with typescript project, the way it is described in the readme, when i run my tests, I get that message
Hi, have you tried the steps in https://github.com/jpkleemans/vite-svg-loader/issues/35?
Closed after 60 days of inactivity