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

I can't import {fas} from fontawesome.macro

Open asoko2 opened this issue 4 years ago • 1 comments
trafficstars

After i fix the module not found 'fs' error now i get this error ./node_modules/babel-plugin-macros/dist/index.js:9:0 Module not found: Can't resolve 'path'

asoko2 avatar Sep 22 '21 03:09 asoko2

Sorry for the late reply. I'm aware that in some non-Node environments fs and path are not available, (in next.js and React Native), causing the error you mentioned.

I specifically tested this module with an app made with create-react-app, but unfortunately I no longer actively maintain this library as I now rely on TypeScript's auto-import functionality instead of using this library. PRs are welcome though :)

javascripter avatar Sep 28 '21 04:09 javascripter