Whenever I attempt to construct or execute a mobile version of my Angular-built web application using Nativescript, I encounter numerous compiler errors like:
src/app/search/search.module.ts(5,29): error TS2307: Cannot find module 'app/common/pipes/pipes.module'.
This issue arises only when I import files using an absolute path. If, for instance, I use
../../../common/pipes/pipes.module
instead of app/common/pipes/pipes.module
, I do not face any errors.
Although the solution may seem simple, I am hesitant to make this change as using relative paths can complicate our work when restructuring or relocating components within our app.
Has anyone found a resolution to this problem? It only occurs when building the app with Nativescript CLI, not with Angular CLI.