Unable to resolve module `react-native/Libraries/EventEmitter/EventEmitter`
Posted TaoLee-
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Unable to resolve module `react-native/Libraries/EventEmitter/EventEmitter`相关的知识,希望对你有一定的参考价值。
React Native项目编译报错;遇到这个问题,很神奇,版本问题,Google了一下,最后解决了如下
原帖在这。 特此mark
change
import EventEmitter from 'react-native/Libraries/EventEmitter/EventEmitter';
to
import EventEmitter from 'react-native/Libraries/vendor/emitter/EventEmitter';
上面替换不是绝对,A改为B或者是B改为A
以上是关于Unable to resolve module `react-native/Libraries/EventEmitter/EventEmitter`的主要内容,如果未能解决你的问题,请参考以下文章
Unable to resolve module `../res/images/ic_popular.png`
Unable to resolve module `react-native/Libraries/EventEmitter/EventEmitter`
rn0.57 bundling failed: Error: Unable to resolve module /../react-transform-hmr/lib/index.js
vscode下import语句报[eslint]unable to resolve path to module (import/no-resovled)
NodeJs的npm安装install报错:code ERESOLVE ERESOLVE unable to resolve dependency tree