You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 31, 2021. It is now read-only.
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.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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?
The text was updated successfully, but these errors were encountered: