Skip to content
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

Problem with AOT compilation #86

Open
TwanoO67 opened this issue Jul 25, 2017 · 3 comments
Open

Problem with AOT compilation #86

TwanoO67 opened this issue Jul 25, 2017 · 3 comments

Comments

@TwanoO67
Copy link
Owner

The AOT compilation process fail with error:

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 /home/twanoo/GIT/bootstraping-ngx-admin-lte/node_modules/ngx-admin-lte/node_modules/@angular/core/core.d.ts, resolving symbol NgxAdminLteModule in /home/twanoo/GIT/bootstraping-ngx-admin-lte/node_modules/ngx-admin-lte/src/ngx-admin-lte.module.ts, resolving symbol NgxAdminLteModule in /home/twanoo/GIT/bootstraping-ngx-admin-lte/node_modules/ngx-admin-lte/src/ngx-admin-lte.module.ts

It's seems to come from the TranslateModule in this file:
https://github.com/TwanoO67/ngx-admin-lte/blob/develop/src/ngx-admin-lte.module.ts

if someone know how to fix that, any help will be very much appreciated :)

@TwanoO67
Copy link
Owner Author

TwanoO67 commented Aug 9, 2017

It's seems to be related to the TranslationService but I can't investigated further...

@giatuyentiensinh
Copy link

I think
https://github.com/TwanoO67/ngx-admin-lte/blob/develop/src/ngx-admin-lte.module.ts#L12 it should be
return new TranslateHttpLoader( http, './public/assets/i18n/', '.json' );

@TwanoO67
Copy link
Owner Author

As it's a http loading, the "public" part of the path, is not visible.
So I think it should remain that way.

But I tried both ways and none of them fix the problem.
( FurtherMore I don't think than the TranslationService is working anymore [or at least, I dont see anymore the network requests that should load the dictionnaries...] )

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

No branches or pull requests

2 participants