Skip to content

Jest fails to import paste icons #2343

Answered by TheSisb
macdonmc asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @macdonmc,

This is a troublesome issue wherein Jest understands ES6 modules, but doesn't expect them from compiled dependencies. Which part of this post did you try and what was the outcome?

An alternative may be to change your icon imports to be from /cjs/ instead of /esm/ if all else fails. Hope this helps!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@macdonmc
Comment options

Answer selected by TheSisb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants