New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AOT build failed with @Inject enum in constructor #8011
Comments
Shouldnt you inject that through a |
Hi @benbenw, You cannot use a pure type to inject, e.g. an enum or an interface. You will need to use an Please note this is not a problem with the Angular CLI. This error (and further discussions and support) should be moved to github.com/angular/angular. Closing this as Working As Intended. |
Sorry for the noise. But it's misleading as it compiles without aot |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Versions.
@angular/cli: 1.4.5
node: 8.1.4
os: darwin x64
@angular/animations: 4.4.4
@angular/common: 4.4.4
@angular/compiler: 4.4.4
@angular/core: 4.4.4
@angular/forms: 4.4.4
@angular/http: 4.4.4
@angular/platform-browser: 4.4.4
@angular/platform-browser-dynamic: 4.4.4
@angular/router: 4.4.4
@angular/cli: 1.4.5
@angular/compiler-cli: 4.4.4
@angular/language-service: 4.4.4
typescript: 2.3.4
Repro steps.
ng new myNgBug
cd myNgBug
npm install
edit src/app/app.component.ts to add an enum and a constructor
nb build --prod
The log given by the failure.
Desired functionality.
It should build
Mention any other details that might be useful.
the build pass when aot is disabled
The text was updated successfully, but these errors were encountered: