首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >从收集器返回本机的输入文件错误

从收集器返回本机的输入文件错误
EN

Stack Overflow用户
提问于 2016-06-23 18:44:48
回答 1查看 1.9K关注 0票数 5

我正在尝试运行一个react本机项目,它在其他人的机器上运行得很好,但是我得到了以下错误。我试过以下几点:

  • 清洁安装节点,npm
  • 重新运行npm安装和rnpm链接

路径字符串似乎被更改为“全局代码@http://localhost:8081/index.ios.js”,但它们在配置文件中看起来很好。

代码语言:javascript
复制
Looking for JS files in
   /Users/dennisjeong/mobile-bebop/bebopRecruitMobile 

[11:15:00 AM] <START> Building Dependency Graph
[11:15:00 AM] <START> Crawling File System
[Hot Module Replacement] Server listening on /hot

React packager ready.

[11:15:05 AM] <START> request:/index.ios.bundle?platform=ios&dev=true
[11:15:05 AM] <START> find dependencies
[11:15:20 AM] <END>   Crawling File System (19327ms)
[11:15:20 AM] <START> Building in-memory fs for JavaScript
[11:15:20 AM] <END>   Building in-memory fs for JavaScript (213ms)
[11:15:20 AM] <START> Building in-memory fs for Assets
[11:15:20 AM] <END>   Building in-memory fs for Assets (153ms)
[11:15:20 AM] <START> Building Haste Map
[11:15:20 AM] <START> Building (deprecated) Asset Map
[11:15:20 AM] <END>   Building (deprecated) Asset Map (66ms)
[11:15:20 AM] <END>   Building Haste Map (166ms)
[11:15:20 AM] <END>   Building Dependency Graph (19867ms)
transformed 726/726 (100%)
[11:15:21 AM] <END>   find dependencies (16307ms)
[11:15:21 AM] <END>   request:/index.ios.bundle?platform=ios&dev=true (16406ms)
[11:15:21 AM] <START> symbolicate
[11:15:21 AM] <START> find dependencies
[11:15:21 AM] <START> find dependencies
transformed 726/726 (100%)
[11:15:22 AM] <END>   find dependencies (498ms)
NotFoundError: Cannot find entry file global code@http://localhost:8081/index.ios.js in any of the roots: ["/Users/dennisjeong/mobile-bebop/bebopRecruitMobile"]
    at DependencyGraph._getAbsolutePath (/Users/dennisjeong/mobile-bebop/bebopRecruitMobile/node_modules/node-haste/lib/index.js:288:13)
    at /Users/dennisjeong/mobile-bebop/bebopRecruitMobile/node_modules/node-haste/lib/index.js:226:30
    at process._tickCallback (internal/process/next_tick.js:103:7)
[11:15:22 AM] <END>   symbolicate (511ms)
[11:15:22 AM] <START> symbolicate
[11:15:22 AM] <END>   symbolicate (341ms)
EN

回答 1

Stack Overflow用户

发布于 2016-06-24 10:25:50

在更新到RN0.28之后,我的应用程序由于不兼容的依赖关系而抛出了这个问题。我就是这样解决这个问题的

rm -rf node_modules npm cache clean

然后打开package.json,除了react本机将所有包版本更改为*

然后运行npm update --save npm update --save-dev

检查包是否用版本号更新,如果没有从npmjs中验证,则手动更新。

从设备中删除应用程序并尝试再次运行

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37999468

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档