1

按照以下说明操作后:

https://github.com/rikulo/bootjack

当我尝试从 Dart 编辑器“生成 js”时,我收到错误消息:

[Info from Dart2JS]:
Compiling StratoIde|web/ide.dart...
[Error from Dart2JS on StratoIde|web/ide.dart]:
packages\bootjack\bootjack.dart:8:8:
Can't read 'package:rikulo_commons/html.dart' (Could not find asset      rikulo_commons|lib/html.dart.).
import 'package:rikulo_commons/html.dart';
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Info from Dart2JS]:
Took 0:00:01.048060 to compile StratoIde|web/ide.dart. 
[Info from Dart2JS]:
Compiling StratoIde|web/index.dart...
[Error from Dart2JS on StratoIde|web/index.dart]:
packages\bootjack\bootjack.dart:8:8:
Can't read 'package:rikulo_commons/html.dart' (Could not find asset   rikulo_commons|lib/html.dart.).
import 'package:rikulo_commons/html.dart';
   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Info from Dart2JS]:
Took 0:00:00.414024 to compile StratoIde|web/index.dart.
Build failed.
4

1 回答 1

1

pub cache repair在这种情况下通常会有所帮助。

于 2014-10-15T04:15:04.420 回答