Search code examples
dartimportwebstorm

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:

enter image description here

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?


Solution

  • This is very old syntax (+2 years)

    Use instead

    import 'dart:html';