【发布时间】:2017-09-23 17:23:17
【问题描述】:
我正在编写 three.js 代码并在设置中启用 TypeScript 定义。但是没有效果。我下载了它,检查了勾号,但什么也没发生。所有three.js 代码都带有下划线,WebStorm 写道没有导入。完整日志:
Missing import statement less... (Ctrl+F1)
Checks that all modules are referenced through import statements.
Suggests inserting the import statement.
When using libraries that define their own global symbols outside their visible JavaScript code (e.g. describe() in Mocha), it is recommended that you add the corresponding TypeScript type definition file as a JavaScript library in Preferences | Languages & Frameworks | JavaScript | Libraries.
我怎样才能修复它并正常编码,因为现在不可能?
【问题讨论】:
标签: typescript three.js webstorm