Angular Dart错误消息

时间:2015-12-07 10:48:44

标签: dart angular-dart

我刚刚开始研究AngularDart教程的第6章(第1部分,创建编辑配方组件) - 到目前为止,我已复制了视图组件,并确保将所有相关详细信息添加到web / main.dart并具有检查过的班级名称等没问题,但是我无法找到为什么会抛出以下错误:

Build error:
Transform _Serial on tutorial|test/main_test.dart threw error: The null object does not have a getter 'arguments'.

NoSuchMethodError: method not found: 'arguments'
Receiver: null
Arguments: []
dart:core-patch/object_patch.dart 42                             Object._noSuchMethod
dart:core-patch/object_patch.dart 45                             Object.noSuchMethod
package:angular/tools/source_metadata_extractor.dart 188         DirectiveMetadataCollectingAstVisitor._extractMappingsFromClass.<fn>.<fn>
dart:collection/list.dart 63                                     Object&ListMixin.forEach
package:angular/tools/source_metadata_extractor.dart 180         DirectiveMetadataCollectingAstVisitor._extractMappingsFromClass.<fn>
dart:collection/list.dart 63                                     Object&ListMixin.forEach
package:angular/tools/source_metadata_extractor.dart 176         DirectiveMetadataCollectingAstVisitor._extractMappingsFromClass
package:angular/tools/source_metadata_extractor.dart 165         DirectiveMetadataCollectingAstVisitor._walkSuperclassChain
package:angular/tools/source_metadata_extractor.dart 156         DirectiveMetadataCollectingAstVisitor.visitClassDeclaration.<fn>
dart:collection/list.dart 63                                     Object&ListMixin.forEach
package:angular/tools/source_metadata_extractor.dart 120         DirectiveMetadataCollectingAstVisitor.visitClassDeclaration
package:analyzer/src/generated/ast.dart 3494                     ClassDeclaration.accept
package:analyzer/src/generated/ast.dart 19457                    NodeList.accept
package:analyzer/src/generated/ast.dart 4261                     CompilationUnit.visitChildren
package:analyzer/src/generated/ast.dart 14170                    RecursiveAstVisitor.visitCompilationUnit
package:analyzer/src/generated/ast.dart 4211                     CompilationUnit.accept
package:angular/tools/source_metadata_extractor.dart 207         DirectiveMetadataCollectingVisitor.call
dart:core/iterable.dart 217                                      Iterable.forEach
package:angular/tools/transformer/expression_generator.dart 155  _LibrarySourceCrawler.crawl
package:angular/tools/source_metadata_extractor.dart 27          SourceMetadataExtractor.gatherDirectiveInfo
package:angular/tools/transformer/expression_generator.dart 43   ExpressionGenerator.applyResolver
package:code_transformers/src/resolvers.dart 113                 Transformer&ResolverTransformer.applyToEntryPoints.<fn>.<fn>
dart:async/future.dart 118                                       Future.Future.<fn>
dart:async-patch/timer_patch.dart 16                             Timer._createTimer.<fn>
dart:isolate-patch/timer_impl.dart 385                           _Timer._runTimers
dart:isolate-patch/timer_impl.dart 414                           _Timer._handleMessage
dart:isolate-patch/isolate_patch.dart 148                        _RawReceivePortImpl._handleMessage

dart:core                                                        Object.noSuchMethod
package:angular/tools/source_metadata_extractor.dart 188         DirectiveMetadataCollectingAstVisitor._extractMappingsFromClass.<fn>.<fn>
dart:collection                                                  Object&ListMixin.forEach
package:angular/tools/source_metadata_extractor.dart 180         DirectiveMetadataCollectingAstVisitor._extractMappingsFromClass.<fn>
dart:collection                                                  Object&ListMixin.forEach
package:angular/tools/source_metadata_extractor.dart 176         DirectiveMetadataCollectingAstVisitor._extractMappingsFromClass
package:angular/tools/source_metadata_extractor.dart 165         DirectiveMetadataCollectingAstVisitor._walkSuperclassChain
package:angular/tools/source_metadata_extractor.dart 156         DirectiveMetadataCollectingAstVisitor.visitClassDeclaration.<fn>
dart:collection                                                  Object&ListMixin.forEach
package:angular/tools/source_metadata_extractor.dart 120         DirectiveMetadataCollectingAstVisitor.visitClassDeclaration
package:analyzer/src/generated/ast.dart 3494                     ClassDeclaration.accept
package:analyzer/src/generated/ast.dart 19457                    NodeList.accept
package:analyzer/src/generated/ast.dart 4261                     CompilationUnit.visitChildren
package:analyzer/src/generated/ast.dart 14170                    RecursiveAstVisitor.visitCompilationUnit
package:analyzer/src/generated/ast.dart 4211                     CompilationUnit.accept
package:angular/tools/source_metadata_extractor.dart 207         DirectiveMetadataCollectingVisitor.call
dart:core                                                        Iterable.forEach
package:angular/tools/transformer/expression_generator.dart 155  _LibrarySourceCrawler.crawl
package:angular/tools/source_metadata_extractor.dart 27          SourceMetadataExtractor.gatherDirectiveInfo
package:angular/tools/transformer/expression_generator.dart 43   ExpressionGenerator.applyResolver
package:code_transformers/src/resolvers.dart 113                 Transformer&ResolverTransformer.applyToEntryPoints.<fn>.<fn>

Build error:
Transform _Serial on tutorial|web/main.dart threw error: The null object does not have a getter 'arguments'.

NoSuchMethodError: method not found: 'arguments'
Receiver: null
Arguments: []
dart:core-patch/object_patch.dart 42                             Object._noSuchMethod
dart:core-patch/object_patch.dart 45                             Object.noSuchMethod
package:angular/tools/source_metadata_extractor.dart 188         DirectiveMetadataCollectingAstVisitor._extractMappingsFromClass.<fn>.<fn>
dart:collection/list.dart 63                                     Object&ListMixin.forEach
package:angular/tools/source_metadata_extractor.dart 180         DirectiveMetadataCollectingAstVisitor._extractMappingsFromClass.<fn>
dart:collection/list.dart 63                                     Object&ListMixin.forEach
package:angular/tools/source_metadata_extractor.dart 176         DirectiveMetadataCollectingAstVisitor._extractMappingsFromClass
package:angular/tools/source_metadata_extractor.dart 165         DirectiveMetadataCollectingAstVisitor._walkSuperclassChain
package:angular/tools/source_metadata_extractor.dart 156         DirectiveMetadataCollectingAstVisitor.visitClassDeclaration.<fn>
dart:collection/list.dart 63                                     Object&ListMixin.forEach
package:angular/tools/source_metadata_extractor.dart 120         DirectiveMetadataCollectingAstVisitor.visitClassDeclaration
package:analyzer/src/generated/ast.dart 3494                     ClassDeclaration.accept
package:analyzer/src/generated/ast.dart 19457                    NodeList.accept
package:analyzer/src/generated/ast.dart 4261                     CompilationUnit.visitChildren
package:analyzer/src/generated/ast.dart 14170                    RecursiveAstVisitor.visitCompilationUnit
package:analyzer/src/generated/ast.dart 4211                     CompilationUnit.accept
package:angular/tools/source_metadata_extractor.dart 207         DirectiveMetadataCollectingVisitor.call
dart:core/iterable.dart 217                                      Iterable.forEach
package:angular/tools/transformer/expression_generator.dart 155  _LibrarySourceCrawler.crawl
package:angular/tools/source_metadata_extractor.dart 27          SourceMetadataExtractor.gatherDirectiveInfo
package:angular/tools/transformer/expression_generator.dart 43   ExpressionGenerator.applyResolver
package:code_transformers/src/resolvers.dart 113                 Transformer&ResolverTransformer.applyToEntryPoints.<fn>.<fn>
dart:async/future.dart 118                                       Future.Future.<fn>
dart:async-patch/timer_patch.dart 16                             Timer._createTimer.<fn>
dart:isolate-patch/timer_impl.dart 385                           _Timer._runTimers
dart:isolate-patch/timer_impl.dart 414                           _Timer._handleMessage
dart:isolate-patch/isolate_patch.dart 148                        _RawReceivePortImpl._handleMessage

dart:core                                                        Object.noSuchMethod
package:angular/tools/source_metadata_extractor.dart 188         DirectiveMetadataCollectingAstVisitor._extractMappingsFromClass.<fn>.<fn>
dart:collection                                                  Object&ListMixin.forEach
package:angular/tools/source_metadata_extractor.dart 180         DirectiveMetadataCollectingAstVisitor._extractMappingsFromClass.<fn>
dart:collection                                                  Object&ListMixin.forEach
package:angular/tools/source_metadata_extractor.dart 176         DirectiveMetadataCollectingAstVisitor._extractMappingsFromClass
package:angular/tools/source_metadata_extractor.dart 165         DirectiveMetadataCollectingAstVisitor._walkSuperclassChain
package:angular/tools/source_metadata_extractor.dart 156         DirectiveMetadataCollectingAstVisitor.visitClassDeclaration.<fn>
dart:collection                                                  Object&ListMixin.forEach
package:angular/tools/source_metadata_extractor.dart 120         DirectiveMetadataCollectingAstVisitor.visitClassDeclaration
package:analyzer/src/generated/ast.dart 3494                     ClassDeclaration.accept
package:analyzer/src/generated/ast.dart 19457                    NodeList.accept
package:analyzer/src/generated/ast.dart 4261                     CompilationUnit.visitChildren
package:analyzer/src/generated/ast.dart 14170                    RecursiveAstVisitor.visitCompilationUnit
package:analyzer/src/generated/ast.dart 4211                     CompilationUnit.accept
package:angular/tools/source_metadata_extractor.dart 207         DirectiveMetadataCollectingVisitor.call
dart:core                                                        Iterable.forEach
package:angular/tools/transformer/expression_generator.dart 155  _LibrarySourceCrawler.crawl
package:angular/tools/source_metadata_extractor.dart 27          SourceMetadataExtractor.gatherDirectiveInfo
package:angular/tools/transformer/expression_generator.dart 43   ExpressionGenerator.applyResolver
package:code_transformers/src/resolvers.dart 113                 Transformer&ResolverTransformer.applyToEntryPoints.<fn>.<fn>

任何帮助将不胜感激! :)

0 个答案:

没有答案