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
I have two projects I'm currently working on, one of which is a library of components using react-inlinesvg (project A) and another which imports the library (project B).
Project A has no issues with react-inlinesvg, but it's compiled to UMD using rollup. Importing any component from project A which uses react-inlinesvg seems to throw an error with the following error:
react_from_dom_1.default is not a function'
After a little digging I've found that when react-inlinesvg requires react-from-dom for some reason there is no 'default' export.
I have two projects I'm currently working on, one of which is a library of components using
react-inlinesvg
(project A) and another which imports the library (project B).Project A has no issues with
react-inlinesvg
, but it's compiled to UMD using rollup. Importing any component from project A which usesreact-inlinesvg
seems to throw an error with the following error:After a little digging I've found that when
react-inlinesvg
requiresreact-from-dom
for some reason there is no 'default' export.I'm thinking it might be because of a difference between our UMD and the ESM modules from
react-inlinesvg
. It might possibly be related to this similar issue which resolves it by using a star import.The text was updated successfully, but these errors were encountered: