build optimizer problem with enum (the Second)
See issue 7613 which is currently closed but seems to have resurfaced now.
Versions
Angular CLI: 6.0.0
Node: 8.11.1
OS: win32 x64
Angular: 6.0.0
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.6.0
@angular-devkit/build-angular 0.6.0
@angular-devkit/build-optimizer 0.6.0
@angular-devkit/core 0.6.0
@angular-devkit/schematics 0.6.0
@angular/cdk 6.0.1
@angular/material 6.0.1
@ngtools/webpack 6.0.0
@schematics/angular 0.6.0
@schematics/update 0.6.0
rxjs 6.1.0
typescript 2.7.2
webpack 4.6.0
Windows 7
"@tensorflow/tfjs": "^0.10.3"
Repro steps
Using tensorflow/tfjs package and training any model with e.g. scalar variables.
Observed behavior
Using (in my case) tensorflow/tfjs package in prod fails with undefined when trying to use the TextureType enum in this file of theirs (figured out by activating the source maps in prod). Circumvented the problem for now by deactivating buildOptimizer in prod.
Desired behavior
Exported enums should be available in prod with activated buildOptimizer.
Mention any other details that might be useful (optional)
Maybe same problem as was in 7613?
Duplicate of #10655
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.