Skip to content

Error on new Ionic 2 RC3 with AoT compiler #6

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
Xepe opened this issue Nov 19, 2016 · 11 comments
Closed

Error on new Ionic 2 RC3 with AoT compiler #6

Xepe opened this issue Nov 19, 2016 · 11 comments

Comments

@Xepe
Copy link

Xepe commented Nov 19, 2016

Hello,

I am trying to use it with Ionic 2, I got the following error in the ionic build android command.

Error: Error encountered resolving symbol values statically. Function calls are not supported. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function (position 7:10 in the original .ts file), resolving symbol RestangularFactory in .. /node_modules/ng2-restangular/dist/esm/src/ng2-restangular.config.d.ts, resolving symbol RestangularModule in .. node_modules/ng2-restangular/dist/esm/src/ng2-restangular.module.d.ts

Regards.

@tairezzzz
Copy link
Collaborator

tairezzzz commented Nov 28, 2016

Hey, Xepe, sorry for late response. We will be working on this issue later this week, and will give you some kind of example how to use this project with Ionic 2.

@tairezzzz
Copy link
Collaborator

@Xepe Thanks for patience, looks like we've fixed it - update will be tomorrow, testing it now 8-)

@tairezzzz
Copy link
Collaborator

Hey new version "0.1.22" is dev but you can try it yourself. You can install it with "--tag dev" option. Waiting for your feedback.

@Xepe
Copy link
Author

Xepe commented Dec 9, 2016

Thanks for your comments, I had been offline the last 2 days... I will do the test and I will let you know.

@Xepe
Copy link
Author

Xepe commented Dec 10, 2016

:) thanks for you job and help @tairezzzz , I installed the version 0.1.22 and the build is working correctly !

@tairezzzz
Copy link
Collaborator

@Xepe You're welcome! Thanks for using this project.

@hemnath11
Copy link

[10:25:22] Error: Error encountered resolving symbol values statically. Functio
n calls are not supported. Consider
replacing the function or lambda with a reference to an exported fun
ction (position 40:29 in the original
.ts file), resolving symbol AppModule in /.tmp/app/app.module.ts
[10:25:22] ngc failed
[10:25:22] ionic-app-script task: "build"
[10:25:22] Error: Error

I got this error after ng2-restangular installed..

@tairezzzz
Copy link
Collaborator

hey @hemnath11 Did you try to install it with "--tag dev" option?

@hemnath11
Copy link

yes i installed "npm install ng2-restangular --tag dev"... and it will shows the version like 0.1.23

@davidbonachera
Copy link
Contributor

I installed the dev version and i still have the 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 25:33 in the original .ts file), resolving symbol AppModule in /Users/Enigma/Lab/hubble-web/src/app/app.module.ts

Shouldn't be an error from AngularCLI team I think : angular/angular-cli#3707

@davidbonachera
Copy link
Contributor

davidbonachera commented Dec 29, 2016

My bad, didn't fully read the updated documentation related to the last 0.1.23

I updated README also #13

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

5 participants