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

error while deploying to github-pages #4812

Closed
gkucmierz opened this issue Feb 18, 2017 · 6 comments
Closed

error while deploying to github-pages #4812

gkucmierz opened this issue Feb 18, 2017 · 6 comments

Comments

@gkucmierz
Copy link

I don`t want to repeat myself.
Here is the problem with github-pages:deploy

http://stackoverflow.com/questions/42306569/angular2-ngrx-error-while-deploying-to-github-pages

What can cause this issue?
How to solve it?

@equinox
Copy link
Contributor

equinox commented Feb 18, 2017

That command has been removed as of 1.0.0-beta.31, you may want to look into the suggested alternatives from this thread here.

@gkucmierz
Copy link
Author

Otherwise app dont want to build.

zrzut ekranu 2017-02-18 o 15 05 56

@clydin
Copy link
Member

clydin commented Feb 18, 2017

Please try updating to the latest version. If the issue persists, please open another issue with the full template details so that we can further assist you.

@gkucmierz
Copy link
Author

Ok, let me update ng-cli

@JohannesHoppe
Copy link
Contributor

JohannesHoppe commented Feb 20, 2017

The error message

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 12:42 in the original .ts file),
resolving symbol compose in /Users/gkucmierz/learn/coin-tools/node_modules/@ngrx/core/compose.d.ts,
resolving symbol AppModule in /Users/gkucmierz/learn/coin-tools/src/app/app.module.ts,
resolving symbol AppModule in /Users/gkucmierz/learn/coin-tools/src/app/app.module.ts,
resolving symbol AppModule in /Users/gkucmierz/learn/coin-tools/src/app/app.module.ts,
resolving symbol AppModule in /Users/gkucmierz/learn/coin-tools/src/app/app.module.ts,
resolving symbol AppModule in /Users/gkucmierz/learn/coin-tools/src/app/app.module.ts

is pretty clear. You have to make your code statically analyzable for AoT.
See here: https://medium.com/@isaacplmann/making-your-angular-2-library-statically-analyzable-for-aot-e1c6f3ebedd5#.3ipjxwp1z
This error has nothing to do with github pages.

This builds your code in JIT mode: ng build
And this in AOT mode: ng build --aot
The github-pages:deploy command was doing AOT builds.

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants