2017-05-26 9 views
0

私は地元のAngluarDartでダーツを持っています。ダーツでコンパイル中のエラー

のUbuntu 16.04.2 DartSdkのv1.23.0

$ pub serve 
Loading source assets... 
Loading angular2, dart_to_js_script_rewriter and dart_sass_transformer 
transformers... (3.4s) 
Serving xxx web on http://localhost:8080 
Build completed successfully 

罰金を働くようだ。しかし、私は私のブラウザにウェブをロードしようとすると、私はこのエラーを取得する "パブは、サーブ":

[web] GET Served 3 cached assets. 
[Info from Dart2JS]: 
Compiling xxx|web/main.dart... 
[Error from Dart2JS]: 
web/main.dart: 
The compiler crashed when compiling this element. 
The compiler is broken. 

When compiling the above element, the compiler crashed. 
It is not possible to tell if this is caused by a problem in your program or not. 
Regardless, the compiler should not crash. 

The Dart team would greatly appreciate if you would take a moment to 
report this problem at http://dartbug.com/new. 

Please include the following information: 

* the name and version of your operating system, 

* the Dart SDK build number (build number could not be determined), and 

* the entire message you see here (including the full stack trace 
below as well as the source location above). 

Build error: 
Transform Dart2JS on xxx|web/main.dart threw error: The getter 'uses' 
was called on null. 
Receiver: null 
Tried calling: uses 
dart:core            
Object.noSuchMethod 
package:compiler_unsupported/src/dump_info.dart 576  
DumpInfoTask.dumpInfoJson 
package:compiler_unsupported/src/dump_info.dart 536  
DumpInfoTask.dumpInfo.<fn> 
package:compiler_unsupported/src/common/tasks.dart 63 
CompilerTask.measure 
package:compiler_unsupported/src/dump_info.dart 533  
DumpInfoTask.dumpInfo 
package:compiler_unsupported/src/compiler.dart 703  
Compiler.compileLoadedLibraries.<fn> 
package:compiler_unsupported/src/common/tasks.dart 176 
CompilerTask.measureSubtask 
package:compiler_unsupported/src/compiler.dart 582  
Compiler.compileLoadedLibraries 
package:compiler_unsupported/src/compiler.dart 471  
Compiler.runInternal 
===== asynchronous gap =========================== 
package:compiler_unsupported/src/compiler.dart 310  Compiler.run. 
<fn>.<fn> 
dart:async            
Future.Future.sync 
package:compiler_unsupported/src/compiler.dart 310  Compiler.run. 
<fn> 
package:compiler_unsupported/src/common/tasks.dart 176 
CompilerTask.measureSubtask 
package:compiler_unsupported/src/compiler.dart 307  Compiler.run 
package:compiler_unsupported/src/apiimpl.dart 245  CompilerImpl.run.<fn>.<fn> 

Build completed with 2 errors. 
[web] GET main.dart.js → Could not find asset xxx|web/main.dart.js. 
[web] GET favicon.ico → (cached) xxx|web/favicon.ico 

もう一度DartSDKを入手しようとしましたが、PATHを改訂しました。

W帽子が問題になることはありますか?

+0

ダーツコードの部分を追加する –

答えて

0

Dart SDKのバージョンを下げて問題を解決しました。 から1.23.0から1.21.1まで

今では、コンプライアントは問題なく仕事をしています。

関連する問題