Component imports must be standalone components, directives, pipes, or must be NgModules. Here treemodule is up to date but still getting the error . this is the error caused in component
This is he error caused in main.ts
Answers for the above question