wix / react-native-ui-lib

UI Components Library for React Native
https://wix.github.io/react-native-ui-lib/
MIT License
6.54k stars 712 forks source link

TypeError: Cannot read property 'default' of undefined #1592

Closed harleenarora closed 2 years ago

harleenarora commented 3 years ago

After update new version I git the error

react-native:: 0.66.0 react-native-ui-lib:: 6.1.2

ethanshar commented 3 years ago

Hi @harleenarora Can you please add a full error, maybe the error screenshot. When are you getting this error? Are you using any specific component that triggers that?

harleenarora commented 3 years ago

Hi @ethanshar I got error under the toast component react-native:: 0.66.0 react-native-ui-lib:: 6.1.2 react-native-reanimated:: 2.3.0-alpha.2 react-native-ui-lib RNUILIB

ethanshar commented 3 years ago

Hi @harleenarora I create a small project with the same dependencies and It's working fine. I render a small screen with rnuilib's View, Text & Toast component and everything works.

Did you follow installation guide for reanimated? (Specifically for Android) https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/installation#android

kieran-osgood commented 3 years ago

Did you remember to include the line in the plugins section of your babel.config.js, and ensure its the last plugin in the array e.g.:

module.exports = {
  presets: [
    'babel-preset-expo',
  ],
  sourceMaps: true,
  plugins: [
    // ... your other plugins

    // NOTE: REANIMATED HAS TO BE LAST
    'react-native-reanimated/plugin',
  ],
}
stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.