I have a problem with transpiling Angular Dart application to javascript.
I got following error messages:
*Loading source assets...
Loading dart_to_js_script_rewriter transformers...
Building testapp...
Building dartdevc modules...
Unable to find module for angular|lib/src/bootstrap/modules.template.dart
Unable to find module for angular|lib/src/bootstrap/modules.template.dart
Build failed.*
Some highlights:
- Application works fine with build_runner
- I use dart SDK 2.0.0-dev.32.0
- I tested and get same results on Win10 and Linux Ubuntu 17
- I tested with dartdevc with and without
Below you can see my pubspec.yaml It could be there is an issue what I can not see.
name: testapp
description: A web app that uses AngularDart Components
version: 0.0.1
environment:
sdk: '>=2.0.0-dev.1.2 <2.0.0'
dependencies:
angular: "5.0.0-alpha+6"
angular_components: "0.9.0-alpha+6"
http: "^0.11.3+16"
stream_transform: "^0.0.10"
angular_router: "2.0.0-alpha+6"
js: "^0.6.1"
intl_translation: "^0.16.1"
intl: "^0.15.2"
dependency_overrides:
analyzer: ^0.31.0-alpha.1
dev_dependencies:
webdriver: "^2.0.0-beta"
browser: "^0.10.0+2"
dart_to_js_script_rewriter: "^1.0.3"
test: "^0.12.30+2"
build_runner: "^0.7.9+2"
build_web_compilers: "^0.3.0"
sass_builder: ^1.1.2 # update for the latest version
transformers:
- $dart2js:
commandLineOptions: [--trust-type-annotations, --trust-primitives, --show-package-warnings, --dump-info, --fast-startup]
- dart_to_js_script_rewriter
For now I have no clue how to debug the problem. Any leads will be very welcome.
Thanks!