-
Notifications
You must be signed in to change notification settings - Fork 3
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
Function calls are not supported in decorators but 'inOutTransitions' was called in 'fxArray' #4
Comments
I got nothing at first glance at your issue report. You say latest Angular so I’ll take your word at that |
I build using ngc and not ng |
Checking source code for a function call related to inOutTransitions.... brb |
My assumption is you are not on the latest Angular and/or the latest cli builder. In previous versions of Angular you couldn't build animations this way. In previous versions of Angular, we had to compile a flat animations file use ack-angular-fx cli commands. Please ensure everything is fully up to date. If issue persists, I can instruct you on how to run ack-angular-fx cli commands to generate a single file with all animations you want written as one file with no function calls |
The docs needed a lot of updating, I have done so. I have added documentation to pre compile all animations to a single file that has no function calls. You should only need this for old outdated Angular though: compile animations to prefx file I build animation to production with no issues though so sorry for the troubles you are having |
Thanks for the quick and extensive feedback. I am indeed using the latest angular version and angular-cli. I tried to precompile the animations and using the prefx.js but I still get a similar error:
I will try to manually edit the prefx.ts file and export the functions in order to build, but it would of course be better if the build worked out of the box. Thanks |
I wonder if every function must be exported? I’ve seen where Angular needs all functions exported for compiling. Hmmmmmmmm, I don’t have this issue at all. Again my compile commands are ngc and not just ng. I’ll try a little bit more for ya but not a whole lot. Functions in transitions are totally legal, so I think it’s just a matter of adding an export declaration in front of every transition function. I’ll try more today for ya. Again not a whole lot though as I have no issues bundling |
Does your prefx.ts file look the same? If not, please share it. |
I have confirmed that |
Try ack-angular-fx 2.0.8 that I just pushed for you The transition functions are now exported. Do NOT use the prefx for this! Those transition function will still NOT be exported. Aka go back to the way you started. Let me know |
Hold on, reviewing further.... I think my last push didn't go through right anyhow...brb |
2.0.9 . Get that version of ack-angular-fx and try again the original way. All functions are exported. Let me know |
If it still doesnt work for you, can you show me your package.json |
I've created a custom prefx which works. I'm exporting the functions used as argument in the transition method.
This works for now but a solid fix would be appreciated. |
AWESOME! Please try 2.0.9 as based on your findings I am certain the new release will have you all set (without the prefx) |
Unfortunately, 2.0.9 does not work. package.json
Confirming version
Building
|
I'm on Angular 5.2.6 and I will try 5.2.7 but I'm sure it works. I've forever had to use the prefx file BEFORE Angular 5.2.0+ One thing ill do today is have the prefx auto export functions since that did work for u. I know the prefx file is NOT what you want but I'm not having these issues like you. I dont think you are doing anything wrong, this whole Angular JiT and AoT compiling has been the roughest PoS process in a long time. Talk later |
I got an idea... Essentially, I'm going to have this package create the prefx file inside this package. So instead of you creating a prefx file, you will just import the prefx file from this package Something like:
I'll get back to you shortly |
Ok, please try ack-angular-fx 2.0.10 Use the original import:
Essentially the allFx.ts file inside ack-angular-fx is no longer dynamically created and is now compiled FROM the prefx process that is known to work. This will make using ack-angular-fx faster once I get rid of the deprecated [@200] animations from Angular4 Also the prefx file process has been upgraded to move all functions to exports. Check it out. Let me know how it goes. 2.0.10 |
2.0.10 still produces a similar, but not the same error.
|
I see I see, I am using export const name = function name() Two minutes... |
Please try 2.0.11 Changed |
It works. Thank you so much for your fast reply and hard work. |
Phat Thursday! I busted tail for us. I have two requests for you:
Have a great one! Thanks for your patience and help. Hope you your sponsors like the end result. Please close this issue if satisfied |
Consider it done. Thanks again. |
I much appreciated your help today and I tell you why........... I have come to find out that I thought I had engaged AoT production compiling for Angular5 but it turns out I completely was not. This is why I was not experiencing the same issue as you..... So now my load time are 22x more efficient. Our work today proves the benefits of Open Source coding. This whole time, one week since upgrading to Angular5, I was wrong thinking I was compiling correctly... man was I wrong. Alright, great show today. Great show indeed. A new release will be coming shortly but nothing that matters to you. Just bundles example page correctly |
That's great. Indeed I could also experience the power of open source and collab today. Off-topic: Did you ever find a solution? I have a very similar challenge where I need to use the queue for some more stuff than just uploading files. |
YOOOOO DONT USE THAT PACKAGE!!! Typing.... |
I forked that crappy package a long ass time ago. You need to use mine: |
Send files using Angular's Http... Don't use the poor old ass Http transmitter built into that sucky old ng2-file-upload package |
What would say would be the easiest way to add custom properties (and methods) to FileItem objects in the queue, when using your fork? Without forking your fork... Is it possible? |
With my package, as each item is selected you could do something like:
|
Aight, me and my colleague will have a look at it tomorrow. You'll hear from us later. 👍 |
I get this error message when trying to build with angular cli.
If I just use
ng serve
it works.I'm using the latest version of ack-angular-fx and angular.
The text was updated successfully, but these errors were encountered: