svgr.macro icon indicating copy to clipboard operation
svgr.macro copied to clipboard

cache issues

Open VinSpee opened this issue 5 years ago • 1 comments

Hi! I'm using svgr.macro in a large project with multiple developers adding icons in various branches. We've found that an icon will often throw an error like:

react-dom.development.js:55 Uncaught Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

The icon is clearly there in the file system, referred to correctly, and used correctly.

Another developer can load up the project and not have any issue.

Is this an svgr.macro issue? or an svgr issue?

VinSpee avatar Jul 17 '19 14:07 VinSpee