在PhpStorm中的TypeScript--没有自动完成。

问题描述 投票:0回答:1

我刚刚开始使用TypeScript & React,我的测试应用程序工作,但我不能得到任何自动完成。windowdocument 功能,知道为什么吗?

document.getElementById - Unresolved variable or type document 等。

我是在webpack中通过Babel编译的,但没有使用 .tsconfig.json 文件。

我还安装了 @types/react-dom 不过 ReactDOM.render 仍然在编辑器中抱怨。Unresolved function or method render()

这不正常吧?谢谢你。

typescript phpstorm webstorm
1个回答
0
投票

貌似是个bug,过了几天就消失了,不过我不知道有什么更新,很奇怪,但是解决了,谢谢。

© www.soinside.com 2019 - 2024. All rights reserved.