我是新来的,希望我输入所需的所有信息 .

当我尝试在我的应用程序中进行一些webscraping时,我遇到了错误

module...does not exist in the haste module map" with 'events' and 'stream'.

我研究了我的问题,并尝试了以下方向的指示:https://github.com/facebook/react-native/issues/4968除了守望者步骤,因为我在Windows上 . 不幸的是,同样的错误不断出现,只是使用不同的模块 . 这次它的babel正在抱怨 .

我该怎么办?

我还尝试创建一个新的react-native-init项目,然后git克隆我的src代码 . 仍然得到类似的错误 .

{

"name": "Work",

"version": "0.0.1",

"private": true,

"scripts": {

"start": "node node_modules/react-native/local-cli/cli.js start",

"test": "jest"

},

"dependencies": {

"axios": "^0.18.0",

"cheerio": "^1.0.0-rc.2",

"events": "^3.0.0",

"firebase": "^5.0.3",

"htmlparser2": "^3.9.2",

"react": "16.3.1",

"react-native": "0.55.2",

"react-native-calendars": "^1.21.0",

"react-native-communications": "^2.2.1",

"react-native-fs": "^2.11.17",

"react-native-router-flux": "^4.0.0-beta.28",

"react-native-vector-icons": "^5.0.0",

"react-navigation": "^2.13.0",

"react-twitter-embedded-timeline": "^0.5.0",

"react-twitter-widgets": "^1.7.1"

},

"devDependencies": {

"babel-jest": "22.4.3",

"babel-preset-react-native": "4.0.0",

"jest": "22.4.3",

"react-test-renderer": "16.3.1"

},

"jest": {

"preset": "react-native"

}

}

从节点cmd屏幕复制 .

878439c5-ade4-43c3-94ea-200bc25569ff.png

Logo

开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!

更多推荐