Skip to content

Angular 5 Error encountered resolving symbol values statically #11

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

Closed
thienedits opened this issue Sep 14, 2017 · 8 comments
Closed

Angular 5 Error encountered resolving symbol values statically #11

thienedits opened this issue Sep 14, 2017 · 8 comments

Comments

@thienedits
Copy link

thienedits commented Sep 14, 2017

I upgraded to angular 5 and getting this when running ng serve with angular-cli.

This may help:
angular/angular-cli#4647 (comment)
https://github.com/rangle/angular-2-aot-sandbox#aot-dos-and-donts

WARNING in ./~/ng-http-loader/~/@angular/core/@angular/core.es5.js
5651:15-36 Critical dependency: the request of a dependency is an expression

WARNING in ./~/ng-http-loader/~/@angular/core/@angular/core.es5.js
5667:15-102 Critical dependency: the request of a dependency is an expression

ERROR in Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function (position 194:50 in the original .ts file), resolving symbol NgModule in C:/pub/inferno/node_modules/ng-http-loader/node_modules/@angular/core/core.d.ts, resolving symbol NgHttpLoaderModule in C:/pub/inferno/node_modules/ng-http-loader/ng-http-loader.module.d.ts, resolving symbol NgHttpLoaderModule in C:/pub/inferno/node_modules/ng-http-loader/ng-http-loader.module.d.ts
@thienedits
Copy link
Author

Also tried adding enhanced-resolve as suggested in this issue but i still get same error

#8

@thienedits
Copy link
Author

I talked to one of the angular devs and he said they have a PR that will fix this soon.

angular/angular-cli#7693

@mpalourdio
Copy link
Owner

Hello, I haven't tested anything with angular 5 at the moment. Will check it ASAP stable release is up.

@musti2
Copy link

musti2 commented Oct 8, 2017

Hi, I am on angular 4.4.4 and this fails during ng serve with the same error here.

@mpalourdio
Copy link
Owner

All ok with angular 4.4.4 and this module AFAIK. Please check this #8

Any code for reproduction ?

@navrudh
Copy link

navrudh commented Oct 25, 2017

Observed this issue on angular 4.4.4. Its now fixed in angular 4.4.6

@thienedits
Copy link
Author

@musti2 I got this once also on 4.4 but I think It went away after I ran vscode on windows as administrator. Are you on Windows?

@mpalourdio
Copy link
Owner

The module has been updated to support angular 5 && angular-cli 1.5.0 from version 0.4.0.

Can this be closed for now ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants