I am facing an issue with my project structure
src
|
+--app
|
+--components
| |
| +-component.ts
|
+--entities
|
+--entity.ts
In entity.ts
, I have
export class Entity {
...
In component.ts
, there is an import statement
import { Entity } from 'app/entities/entity';
While running ng build
, everything compiles successfully. However, Webclipse throws an error saying it
Cannot find module 'app/entities/entity'
.
If I modify component.ts
to read like this instead
import { Entity } from '../entities/entity';
it works fine in both Webclipse and ng build
. However, due to coding standards at the company, architects are not comfortable with this change, which I also agree with.
Is there a solution to make Webclipse recognize this import? Can we configure the import root for the Webclipse TS compiler?