Learning Dart and trying out stagehand for the first time.
I've built a project for the web using: stagehand --web-simple
My project structure is:
But for some reason, import package is complaining it can't find it:
[dart uri_does_not_exist] [E] Target of URI doesn't exist: 'package:tetris/tetris.dart' Try creating the file referenced by the URI, or Try using a URI for a file hat does exist.
library tetris;
import 'dart:html';
import 'dart:async';
import 'dart:math';
part 'src/model/tile.dart';
part 'src/model/block.dart';
part 'src/model/blocks.dart';
part 'src/game.dart';
Your build.yaml says the package name is build_a_tetris_game. Change your import statement to import 'package:build_a_tetris_game/tetris.dart' and you should be golden.
Learning Dart and trying out stagehand for the first time.
I've built a project for the web using:
stagehand --web-simple
My project structure is:
But for some reason,
import
package is complaining it can't find it:This is what I have in my
web/main.dart
:This is in my
lib/tetris.dart
:My
pubspec.yml
:Dart version:
Any ideas?