icons-pack / react-simple-icons

📦 This package provides the Simple Icons packaged as a set of React components.
MIT License
287 stars 18 forks source link

"SyntaxError: ambiguous indirect export" when importing any icons or colors #203

Open nstgeorge opened 9 months ago

nstgeorge commented 9 months ago

When I try to import any icon or color from react-simple-icons, I get the following error:

Uncaught SyntaxError: ambiguous indirect export: SiApple

(Or whatever I'm trying to import, of course). No stack trace is provided, just the line number in my code where I import the module.

This is a new issue after upgrading from 6.x to 9.x. The indirect export mention leads me to think that this is related to the indirect exports in the index.ts, possibly something to do with the naming being updated between these versions?

I'm using React 18 with Vite 4.0.4. Let me know if there's any other info I can provide.

wootsbot commented 8 months ago

@nstgeorge help me with an example of how I'm trying to import, if I had a live demo it would be much better.