android - React-Native Error: Unable to resolve module
问题描述
React Native 0.63.4
Out of what seems like nowhere, I'm getting Error: Unable to resolve module '../../realm' from '/src/my/source/file'
. This isn't really realm specific. It was working until this morning and then I did a fresh install on the android emulator and it is now red screening.
If I change import Realm from 'realm'
to import Realm from '../../../node_modules/realm'
it works fine. I've deleted my node_modules
dir and ran npm i
again. Cleared any cache I know about. Just have no idea why this happens.
解决方案
推荐阅读
- node.js - 如何使用 nodejs API 更新 ecs 服务?
- android - 如何在 proguard 中包含 aar 文件依赖项?
- angular - 迁移回 Angular 7
- c# - 通过在注册回调中调用 ThrowIfCancellationRequested 来响应取消请求
- asp.net - 为什么我的 UserControl Visible 属性总是返回 false?
- java - Hibernate java ORA-02292: 违反完整性约束 - 发现子记录 Course with Review
- javascript - 我们如何跟踪对 amp 故事页面中的链接标签的点击
- java - Java反射getDeclaredMethod抛出NoSuchMethodException
- r - Plotly scaleY 不适用于子图行
- swift - 如何快速计算跨越两天的两次之间的正确时间间隔?