-
Notifications
You must be signed in to change notification settings - Fork 12k
Error encountered resolving symbol values statically with type Storage #4837
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
Comments
Facing the same issue. For me type is Window,
|
@devforey can you post your code for "Storage"? |
@deebloo It's from typescript's lib. the snippet:
|
@devforey are you providing it in anyway to angular's dependency injector? Anything that is going to be injected needs to be provided. @ASHFAQPATWARI this applies to Window as well @NgModule({
providers: [
{ provide: 'storage', useValue: Storage }
]
})
export class AppModule { }
@Component({
...
})
export class AppComponent {
constructor(@Inject('storage') private storage) {}
} |
@deebloo's explanation is pretty good. This isn't a CLI issue per se though, a better place to ask would be stack overflow. |
@devforey, author (devforey) say that the error occurs only with I have similar error, but error occurs only with UPD: I resolved this problem by remove all no needed classes from module providers |
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. |
OS?
Versions.
angular-cli: 1.0.0-beta.28.3
node: 6.9.5
os: linux x64
@angular/common: 2.4.8
@angular/compiler: 2.4.8
@angular/core: 2.4.8
@angular/forms: 2.4.8
@angular/http: 2.4.8
@angular/platform-browser: 2.4.8
@angular/platform-browser-dynamic: 2.4.8
@angular/router: 3.4.8
@angular/material: 2.0.0-beta.1
@angular/compiler-cli: 2.4.8
Repro steps.
The log given by the failure.
The text was updated successfully, but these errors were encountered: