axelra-ag / react-native-animateable-text

🆎 A fork of React Native's <Text/> component that supports Animated Values!
https://www.npmjs.com/package/react-native-animateable-text
MIT License
360 stars 27 forks source link

error on building #39

Open ghost opened 1 year ago

ghost commented 1 year ago

hello,

when I build the component react-native-animateable-text I have an error which is returned to me knowing that I installed Reanimated 1 and 2 and also react-native-redash with yarn.

Here is the error:

Android Bundling failed 123ms error: node_modules/react-native-reanimated/src/index.ts: /Users/youssef/applis-react/react-native/test-animated/node_modules/react-native-reanimated/src/index.ts: Export namespace should be first transformed by @babel/plugin-proposal-export-namespace-from. 5 | export from './reanimated1'; 6 | export from './reanimated2';

7 export * as default from './Animated';

apparently webpack is used on the component but I don't know webpack how can I disable the fact that Animated is by default?

Cordially. error.pdf

XantreDev commented 1 year ago

Install @babel/plugin-proposal-export-namespace-from and add @babel/plugin-proposal-export-namespace-from to your babel config