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
Hi!.
Not sure if it's related with package itself or my jest config but it's worth to ask.
I'm having a classic error when I'm importing .svg file and putting it to ReactSvg component.
Error: Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.
SyntaxError: Unexpected token '<'
> 1 | import IconTrash from './IconTrash.svg'
| ^
2 | import IconSearch from './IconSearch.svg'
3 | import IconStudies from './IconStudies.svg'
4 | import IconLogout from './IconLogout.svg'
Hi!.
Not sure if it's related with package itself or my jest config but it's worth to ask.
I'm having a classic error when I'm importing
.svg
file and putting it toReactSvg
component.Error: Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.
jest.config.js:
Looks like
jest
don't understandsvgs
. Does anyone had that issue and coped with it?The text was updated successfully, but these errors were encountered: