我正在使用 RN 0.69.2 版本。昨天我已经将其升级到RN 0.70版本。我遵循了 React Native Helper 中的指南。但我在 Metor 中遇到错误,它说无法解析模块“./app.json”。当我尝试 npm start --reset-cache 时,我收到其他错误,其中显示 References Error sha-1 。
我尝试了 stackoverflow 中的所有解决方案,但错误没有解决。
小智 6
我遇到了同样的问题,可以通过在解析器下的文件json末尾添加来解决它metro.config.js
resolver: {
sourceExts: ['jsx', 'js', 'ts', 'tsx', 'json'], //add here
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
621 次 |
| 最近记录: |