Advanced Angular seed project with support for ngrx/store, ngrx/effects, ngx-translate, angulartics2, lodash, NativeScript (*native* mobile), Electron (Mac, Windows and Linux desktop) and more.
I'm struggling with my aot build after having included date-fns into my project (through angular-calendar). It all builds okay with the normal production build.
Everywhere I read and everyone I ask tells me the above is sufficient for them. But for some reason I am not able to compile it when used in the angular-seed here.
The error is:
Error on fetch for date-fns/get_iso_week.js
Obivously the mapping is for some reason not correct. Is there anything special I need to do for the angular-seed-advanced to make it right?
If I add the following line to my paths it can succesfully build aot and prod build, but then nothing works anymore so I am but out of ideas:
'date-fns/*': 'node_modules/date-fns/index.js',
Hi everyone,
Hope you are well and might be able to assist me.
I'm struggling with my aot build after having included date-fns into my project (through angular-calendar). It all builds okay with the normal production build.
I'm including the functions in my code like this:
In my seed.config.ts I am including the lib in the following way (also as illustrated in other examples):
Everywhere I read and everyone I ask tells me the above is sufficient for them. But for some reason I am not able to compile it when used in the angular-seed here.
The error is:
Error on fetch for date-fns/get_iso_week.js
Obivously the mapping is for some reason not correct. Is there anything special I need to do for the angular-seed-advanced to make it right?
If I add the following line to my paths it can succesfully build aot and prod build, but then nothing works anymore so I am but out of ideas: 'date-fns/*': 'node_modules/date-fns/index.js',
Any suggestions?