Open mappmechanic opened 4 years ago
Are there any updates on it?
Actually, I tried to update all package json versions myself and it seemed to work.
I found this in the Ionic repo - https://github.com/ionic-team/ionic/blob/master/core/stencil.config.ts#L92. Seems new way of declaring angular targets
@mappmechanic did you make only package.json update? Can you please share your package.json here?
could you provide us @mappmechanic more details plz
@rsurjano So the fix for me (not sure if its the correct fix) - was to set in angular.json "aot": false
It is not the correct fix, we should never set 'aot' to false without any purpose or else our bundle size will shoot up as the JIT compiler will be bundled in our dist files.
@rsurjano @psamusev Please update the packages of each dependency given in package json, example for all the angular dependencies based on your latest angular project. Then it will work automatically with some minor tweaks. As the changes I have done our in an enterprise github instance, I cannot share that code.
@mappmechanic Yeah, sorry i meant for my project which is just a POC and for the short term until the packages were updated. I probably should have been more clear with my comment and use case π What tweaks were required other then bumping the versions?
Hello everyone!
I think I faced with same issue. I walked through all comments here and here is my summary:
aot
and ivy
-related flags in configs. I checked and turning off aot
in angular.json
does the trick. I guess you know what downsides it brings. But..Hope ionic team/@jthoms1 will spare some time and update this template and corresponding docs for angular v10+.
upd/edit: would be nice if someone can confirm my findings
@ZuBB , @jthoms1 any updates on this?
@nikbabchenko nothing new from my side. angular version of our example app is considered 2nd level priority..
@ZuBB, cool! will check on the weekend if it works for me.
As I stumbled upon the ivy issue too, I want to share my workaround
For me atleast this seems to be working fine. Angular detects the components as valid ivy components, autocompletion in WebStorm works. Checked with webpack bundle analyzer and only the used components are build in the bundle, seems like treeshaking is working fine too.
@eXXeption urgent help, please. If I create a library in this project, is there a way to consume the library in that project (in which u created library) without publishing anywhere?. TIA.
@eXXeption urgent help, please. If I create a library in this project, is there a way to consume the library in that project (in which u created library) without publishing anywhere?. TIA.
tsconfig -> path mappings do the trick
@eXXeption urgent help, please. If I create a library in this project, is there a way to consume the library in that project (in which u created library) without publishing anywhere?. TIA.
tsconfig -> path mappings do the trick
could you please post sample code :( sorry for it. but I am clueless, working with stencil and angular mono repo like structure for first time.
update: Got itπ thanks a lot
This Angular DS Template Doesn't Work with Ivy @angular - 9.0.0-rc6
When I try to compile using Ivy, it gives me weird errors about NgModule meta info etc.