react icons not working #7637
-
What version of Remix are you using?2.0.1 Are all your remix dependencies & dev-dependencies using the same version?
Steps to ReproduceI want to use react icons Expected Behaviorbut got this error: Actual Behavior
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Hey @pullmann4rent, could you show how you import and use the icons ? |
Beta Was this translation helpful? Give feedback.
-
I faced the same problem but got it working by importing it this way, eg:
instead of the 'usual' method:
File format: |
Beta Was this translation helpful? Give feedback.
-
You have to add
Hope this helps :) |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
You have to add
serverDependenciesToBundle
inside your remix.config:Hope this helps :)