Replies: 1 comment
-
@Saikedo |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to see how I can import 3rd party libraries into my bit component.
I have a 3rd party component that works perfectly fine in a standalone react-native-web environment, but when I try to use the same component in my bit component, I get an error in the preview stating something like this.
In react-native-web environment, I usually handle this by using a babel-loader so that the 3rd party react-native library will be processed with react native web plugin when webpack runs. I am assuming the issue is similar here but I was unable to achieve the same thing in my bit project.
This is what I tried.
//webpack.config.js file
//webpack-transformers.ts file
And finally inside my custom env, I have this (not posting the entire code, just the snippet that adds custom webpack configs)
Am I doing something wrong here? Did anyone manage to make this work ?
P.S. For a reference, I am trying to use the following library in my component.
https://www.npmjs.com/package/react-native-walkthrough-tooltip
Beta Was this translation helpful? Give feedback.
All reactions