i have a config.json file where i stocked all my BaseUrls and API_KEYS but, when i'm trying to import these from other component i get this error : **Should not import the named export 'API_URL_Geo' (imported as 'config') from default-exporting module (only default export is available soon) **, i tried 2 methods of importing
import * as config from "../config.json";
config.API_URL_GEO
and
import {API_URL_Geo} from "../config.json";
but i still get same errors, any help ?
Via Active questions tagged javascript - Stack Overflow https://ift.tt/K6OlQDJ
Comments
Post a Comment