Closed jameskentTX closed 4 years ago
Hello Trumpi! I have updated my app to run with Ivy enabled. Your app is working too. I've made many many changes, so I don't know yet which are crucial, and which are unnecessary.
Problem was with directories. I used suggestions from: https://dev.to/negue/angular-ivy-overcome-the-first-obstacles-400n
I've made these changes:
"@libs/api": ["projects/pazznetwork/ngx-chat/src/public_api"]
to paths
in compilerOptions
in tsconfig.json
app.module.ts
) using "@libs/api":
import { NgxChatModule } from '@libs/api';
I made many changes trying to find solution, but these above are probably crucial and are enough to use your project with Ivy enabled (enableIvy": true
in tsconfig.app.json
, "aot": true
in angular.json
).
Hi @jameskentTX,
thank you for reporting this. I will have a look at this to ensure compatibility of ngx-chat with ivy.
PS: It's trampi, not trumpi 😉
With the version 9 release of Angular, the new compiler and runtime instructions are used by default instead of the older compiler and runtime, known as View Engine.
As ngx-chat arrived at 0.9.0 (synchronized with angular version numbers) we're now officially supporting angular 9 / ivy. Feel free to reopen this ticket if any issues arise.
Hello Trumpi! Your app won't compile if you enable ivy by adding
enableIvy": true
to "angularCompilerOptions" intsconfig.json
file ( https://angular.io/guide/ivy ).I don't know if is possible to have ivy enabled and still using your app, so please take a look at this problem, if you find free moment.
With ivy enabled there are many, many build errors, like this: