【问题标题】:im trying to fix the error from babel someone have idea how i can fix it我试图从 babel 修复错误有人知道我该如何修复它
【发布时间】:2022-10-06 15:29:09
【问题描述】:

你好,我正在尝试连接到我的代码另一个有人给我的代码,当我尝试粘贴它时,我得到了错误

./node_modules/react-native-reanimated/lib/index.web.js 3:9
Module parse failed: Unexpected token (3:9)
File was processed with these loaders:
 * ../../../AppData/Roaming/npm/node_modules/expo-cli/node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
| import \"./reanimated2/js-reanimated/global\";
| export * from \"./reanimated2\";
> export * as default from \"./Animated\";

    标签: reactjs react-native babeljs


    【解决方案1】:

    看起来这是here 讨论的最新版本中的一个已知问题

    将 react-native-reanimated 包版本恢复到 2.6.0 或 2.3.1 应该可以解决问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-06-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-01
      相关资源
      最近更新 更多