I have to import a javascript file in my app module
import { OtherComponent } from './node_modules/blahblah/OtherComponent.js'
Notice that this OtherComponent is a javascript file already.
Then inside my @NgModule, I added this component to my declaration.
When I run "ng build --prod", it gives me error:
ERROR Unexpected value 'OtherComponent' declared by the module 'AppModule'
Please add a @Pipe/@Directive/@Component annotation
Is there a way to fix this? when I don't have access to the ts file of OtherComponent.