I have a root app directory with the following folders:
/app/
/environments/
Inside /app/
exist helpers/Helper.ts
:
/app/helper/Helper.ts
In this file I tried to import environments:
import { environment } from "../../environments/environment.prod";
Two directories back, it is right, it works.
Problem is when compiler compiles code it says:
Error: com.tns.NativeScriptException: Failed to find module: "../../environments/environment.prod", relative to: app/helpers/
So, my tsconfig contains:
{ "baseUrl": "./" }