svgr.macro
svgr.macro copied to clipboard
cache issues
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?