-
Hey everyone, so recently at work we decided to start using storybook and we initially started with react-native v5 before we found out that maybe using the beta version of v6 would be better. When I tried to convert and just play around with v6, I found out that whenever I used native-base components my app would crash and I would get an error saying "Can't find variable: HTMLElement". This error would be in several node modules relating to react-native, and I was wondering if anyone knew a workaround we could still use native-base and @storybook/react-native beta 6. Things I have tried to fix: I highly recommend checking out my repo here since you can see all my code in .storybook (note that the folder called storybook is just old v5 code). Another important thing to note is that I know react-native storybook v6 is indeed working since I can make normal components with just react-native elements such as View and Text components. I have been looking hard to fix this all day and would really appreciate it if someone had any insight on how to fix this since most of our company's components are made with native-base. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
@SethY8s Hey thanks for trying out the beta, sorry that you ran into issues. Could you try updating your other storybook dependencies to match each other? Preferably remove any older packages on 5.3 you aren't using too so that you don't get clashing peer dependencies. for example
I can take a look at your project in more detail tomorrow and debug it for you. |
Beta Was this translation helpful? Give feedback.
@SethY8s Hey thanks for trying out the beta, sorry that you ran into issues. Could you try updating your other storybook dependencies to match each other? Preferably remove any older packages on 5.3 you aren't using too so that you don't get clashing peer dependencies.
for example
I can take a look at your project in more detail tomorrow and debug it for you.