React native 流动核素无误差
我尝试在我的核素安装中使用Flow,但在我的React原生项目中看不到任何诊断。但是从cli运行流会导致int 1000+错误 如果我保存一个文件,底部栏中的微调器会旋转,然后完全消失(无空闲) .flowconfigReact native 流动核素无误差,react-native,atom-editor,nuclide-editor,React Native,Atom Editor,Nuclide Editor,我尝试在我的核素安装中使用Flow,但在我的React原生项目中看不到任何诊断。但是从cli运行流会导致int 1000+错误 如果我保存一个文件,底部栏中的微调器会旋转,然后完全消失(无空闲) .flowconfig [ignore] [include] [libs] [lints] [options] package.json "devDependencies": { "babel-cli": "^6.26.0", "babel-core": "^6.25.0",
[ignore]
[include]
[libs]
[lints]
[options]
package.json
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-core": "^6.25.0",
"babel-jest": "19.0.0",
"babel-preset-flow": "^6.23.0",
"babel-preset-react-native": "^1.9.1",
"flow-bin": "^0.56.0",
"jest": "19.0.2",
"react-test-renderer": "15.4.2"
},
我的App.js
/* @flow */
Math.pow('X');
import boot from "./app/boot";
const app = boot();
export default app;
我也遇到了让核素诊断报告流量问题以显示在Atom中的令人沮丧的问题 正如您所提到的,在CLI中运行Flow会发现错误,但IDE中不会显示任何内容 我发现你的帖子有点晚了,但以下是我(最终)做到的 1) 也许没必要,尽管我还是做了。。。在这篇文章之后,我尽我所能卸载了Atom: 2) 我下载了最新版本的Atom并安装了它: 3) 在安装核素之前,我先安装了过梁这似乎是我所有其他尝试中缺少的。我运行了
apm install linter
,apm install linter eslint
,以及apm install linter flow
。我启动了Atom,允许IDE安装linter ui默认值
,然后验证Atom自己的linter流
是否接收到流错误。唉,是的!好身材
4) 然后我终于安装了核素。当提示选择禁用linter
或atomidediagnosticsui
以避免重复的linting问题时,我选择禁用atomidediagnosticsui
,以验证ide仍然正确地处理流问题,幸运的是,它确实如此
5) 然后,我去关闭了linter
,并重新启用了atom ide诊断
(atom>Config>核素
使用
“atom ide诊断ui”:true
)。令我大吃一惊的是,所有的事情都还在进行中,流动问题现在已经通过核素的诊断界面集成到Atom中了
以下是我安装的软件包列表,大致按时间顺序排列:
├── 忙碌的-signal@1.4.3
├── intentions@1.1.5
├── linter@2.2.0(残疾)
├── 皮棉-eslint@8.4.0
├── 皮棉-flow@5.6.1
├── 林特用户界面-default@1.6.10
└── nuclide@0.271.0
编辑:添加了我的核素设置的屏幕截图
祝你好运,我希望这对你有所帮助 谢谢你的详细回答!它只是帮助我修复了Atom中的显示流错误。