export declare class Config {
readonly ROUTE_TYPE_CREATE: string;
}
import { Config } from "./Config";
export default class NewComponent {
constructor() {
this.routeType = Config.ROUTE_TYPE_CREATE;
}
}
Upon compiling the code, an error is thrown:
ERROR in [at-loader] ./new.cpn.ts:12:33
TS2339: Property 'ROUTE_TYPE_CREATE' does not exist on type 'typeof Config'.
The issue seems to be that the property ROUTE_TYPE_CREATE is inaccessible. Why could this be happening?