In my Ionic application I am defining constants as
//constants.ts
export var CONSTANTS = {
API_ENDPOINT: 'http://localhost:3000/'
};
and importing it as
import {CONSTANTS} from '../../services/constants'; //the path is correct
However I get the error CONSTANTS not defined in the file where I am importing.. what am i missing here ?