运行本机代码时出现以下错误,请帮助我
错误: index.js:无法找到模块‘babel-plugin’要求堆栈:
发布于 2022-08-04 14:04:51
当我使用需要react-native-reanimated.的react导航时,我也遇到了同样的问题。为了继续,在遵循文档中提到的说明之后,我省略了以下三点:
module.exports = function (api) { api.cache(true); return { presets: ["babel-preset-expo"], //... <=== this three dots caused the problem plugins: ["react-native-reanimated/plugin"], }; };
为我解决了这个问题。原来的答案链接是这里
https://stackoverflow.com/questions/66704298
相似问题