dart - AngularDart v1.0 Uncaught Type "[type]" not found in generated typeFactory maps -
I have an app that I originally created in Angular Dart v0.12 which was running in JS and running But, after upgrading Angulordart v1.0, accounting for the change and breaking changes, it fails to run in JS after creating it without problems. When attempting console following error to run in Chrome:
My pubspec
The following the following is my module class: The following questioner is the service class: To be repeated only, this application is working fine when using DartVM, but it does not seem that QueryService was built in JS. Besides, I know that this might be similar to the question, but the solution does not seem to have any effect in my case, and AngularDart version is new. Uncaught type "QueryService" generated typeFactory not found in the map .yaml config:
name: ### author: ### Description: ### homepage: ### Transformer - angular: dart_sdk: "C: / Dart / Dart- sdk" suppressWarnings false - $ dart2js: suppressWarnings: to reduce false: false check: true dependence: angular any Angular_dart_ui_bootstrap any bootjack: any browser: any chrome: any Di any dquery: a future Google_oauth2_client any Http_server any inject any js: Any sign any fake any Mongo_dart any way any Shadow_dom any shelf: any Shelf_route any Shelf_web_socket any sqljocky: Any Unittest: any
class AP Podule module {AppModule ()) extends {/ * * services , Router, and controller * / bind (query service); RoutingService; Tie (Rootinilizerphone, Too Well: Initures); Tie (NGROttingWebspost, to Well: New NGRoutingUspectState.VALU (false)); / * * Component * / bind (login); Bind (dashboard); SideNav; }}
@Injectable () class QueryService {HTTP} scope _ scope; QueryService (http this._http, scope this._scope) {someFunction (); }}
After
@Injectable annotation should trigger the generation of the factory.
If it can not be that you are not running angular transformer
You pubspec should be listed in the transformer, namely:
Name: MyApp Dependency: Angular: "> = 1.0.0 & lt; 2.0.0" Transformer: - angular
Comments
Post a Comment