简体   繁体   中英

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. 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:

在此处输入图片说明

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?

This is very old syntax (+2 years)

Use instead

import 'dart:html';

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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