简体   繁体   English

WebStorm - Dart 导入错误

[英]WebStorm - Dart import errors

I'm new to DART, so I was looking for some program to test and I found a little space invaders game.我是 DART 的新手,所以我正在寻找一些程序来测试,我发现了一个小太空入侵者游戏。 I have import the project in WebStorm, but there's an error with the import, and I don't understand where does the error comes from:我已经在WebStorm中导入了项目,但是导入时出现错误,不明白错误出自哪里:

在此处输入图片说明

Are there any missing libraries?是否有任何缺失的库? I did download the dart-sdk and linked it when I installed WebStorm, but I didn't provide any link for Dartium, is that what causes the error?我在安装 WebStorm 时确实下载了 dart-sdk 并链接了它,但是我没有提供 Dartium 的任何链接,这是导致错误的原因吗?

This is very old syntax (+2 years)这是非常古老的语法(+2 年)

Use instead改用

import 'dart:html';

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM