Hello everyone,
I recently upgraded Angular from version 15 to 16 and encountered a challenging bug. Could you please help me take a look at it? The error message I'm getting is: ✘ [ERROR] TS-992012: Component imports must be standalone components, directives, pipes, or must be NgModules. [plugin angular-compiler].
I examined the source code and indeed did not find the @NgModule annotation because it was declared in the d.ts file for the SortablejsModule. Now I would like to know how to fix this issue. I would be extremely grateful if you could provide any valuable suggestions.
Thank you very much!

Top comments (1)
I believe the key to the issue is this 3rd party library ngx-sortablejs — you need to either update it (if they have the patch covering A16 compatibility) or get rid of it. As I remember, in A16 Ivy becomes the single supported engine so if a 3rd party lib doesn’t use the newer version in their code, it won’t be compatible with your updated build.
And hey, have you heard of the StackOverflow? 😉😄