Open jodinathan opened 3 years ago
in the directory .dart_tool/build/generated/guaraci_admin/lib/wizard
I have:
// wizard.dart2js.module, wizard.ddc.module, wizard.module.library,
// wizard.ng_placeholder, wizard.scss.css, wizard.scss.css.dart
// wizard.scss.css.module.lib, wizard.scss.css.shim.dart
// wizard.scss.css.shim.module.library
but not the wizard.template.dart.
Found the bug.
I was using exports: [List]
so I could use List.filled(5, null)
in the template.
It is not the exports itself, because I am still using exports: [RelativePosition]
and it is compiling.
As I have an extension on List
I added a simple extension to RelativePosition
to test:
extension AdvRelativePosition on RelativePosition {
bool yes() => 1 > 0;
}
the compiler did not like it:
[SEVERE] build_web_compilers:ddc on package:guaraci_front/wizard/wizard.template.ddc.module:
Error compiling dartdevc module:guaraci_front|lib/wizard/wizard.template.ddc.js
packages/guaraci_front/wizard/wizard.template.dart:831:31: Error: Getter not found: 'RelativePosition'.
final currVal_2 = import2.RelativePosition.AdjacentBottomEdge;
^^^^^^^^^^^^^^^^
[WARNING] build_web_compilers:entrypoint on web/main.dart:
Unable to read guaraci_front|lib/wizard/wizard.template.ddc.js, check your console or the `.dart_tool/build/generated/guaraci_front/lib/wizard/wizard.template.ddc.js.errors` log file.
[SEVERE] build_web_compilers:entrypoint on web/main.dart:
AssetNotFoundException: guaraci_front|lib/wizard/wizard.template.ddc.js
I am guessing that the compiler was able to tell me the problem in this case because the extension is in the same file as the component.
Silent bugs... cries
dart 2.9.3 angular 5.3.1
out of nowhere I can't serve or build a project. it basically gives you no clue of what is happening.