react-native-animateable-text icon indicating copy to clipboard operation
react-native-animateable-text copied to clipboard

error on building

Open elmweb-youssef opened this issue 2 years ago • 1 comments

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

elmweb-youssef avatar Jan 02 '23 11:01 elmweb-youssef

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

XantreDev avatar Sep 06 '23 14:09 XantreDev