Dart - 1.24.2
Angular - 4.0.0
Chromium - 45.0.2454.104
pubspec.yaml
name: Test
description: A web app that uses AngularDart Components
version: 0.0.1
#homepage: https://www.example.com
#author: serhii <email@example.com>
environment:
sdk: '>=1.24.0 <2.0.0'
dependencies:
angular: ^4.0.0
angular_components: ^0.8.0
dev_dependencies:
browser: ^0.10.0
dart_to_js_script_rewriter: ^1.0.1
transformers:
- angular:
entry_points:
- web/applications/courier/courier.dart
- dart_to_js_script_rewriter
铬产量:
package:angular/src/platform/bootstrap.dart:107
Exception: Unsupported operation: Using the 'angular2' transformer is required.
Please see https://webdev.dartlang.org/angular/tutorial for setup instructions,
and ensure your 'pubspec.yaml' file is configured to invoke the 'angular2'
transformer on your application's entry point.
如果我构建这个 - 一切都好,如果我服务(pub serve
) - 一切都好,但我需要它在Chromium中工作。请帮忙!
答案 0 :(得分:0)
确保您的入口点参数正确(路径和文件):
transformers:
- angular:
entry_points:
- web/applications/courier/courier.dart
重命名我的entry_point文件并且没有更新pubspec.yaml时发生了同样的错误。