Avi*_*h A 12 javascript reactjs babeljs react-native
当我使用运行反应本机应用程序时出现以下错误react-native-cli
error: node_modules\react-native-reanimated\src\index.ts:
D:\Desktop\coding\Github\Stocksy\node_modules\react-native-reanimated\src\index.ts:
Export namespace should be first transformed by `@babel/plugin-proposal-export-namespace-from`.
Run Code Online (Sandbox Code Playgroud)
小智 20
尝试这个: -
npm install react-native-reanimated
在 babel.config.js 中插入插件:['react-native-reanimated/plugin'](确保它在最后,它应该看起来像这样:-
module.exports = { 预设:['模块:metro-react-native-babel-preset'],插件:['react-native-reanimated/plugin'], };
运行react-native start --reset-cache
运行您的本机应用程序(例如 ios - npx react-native run-ios)
| 归档时间: |
|
| 查看次数: |
8050 次 |
| 最近记录: |