Anomen / next-svgr

Convert your SVG files into React components in Next
MIT License
26 stars 9 forks source link

loader rule needs to occur before that other loaders #3

Closed p-stoliaryk closed 4 years ago

p-stoliaryk commented 4 years ago

like the file-loader rule so that @svgr/webpack takes precedence. another way, the error 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. will have place.