/src
|--components
| |--Layout
| | |--AppLayout.js
| | |--Header.js
| | |--Content.js
| | |--Footer.js
| |--Root.js
|--constants
| |-- AppConfig.js
|--index.js
Currently, I have my react js project structured as described above. My question is how can I import config from AppConfig.js in the file Root.js(sibling folder inside src folder), and also import it to the AppLayout.js? I have tried import APPCONFIG from '../../constants/appConfig';, import APPCONFIG from '../constants/appConfig';, import APPCONFIG from './constants/appConfig';, import APPCONFIG from './constants/appConfig'; and import APPCONFIG from 'constants/appConfig'; but nothing works.
'../constants/appConfig'looks to be the correct relative path for importing intoRoot.js, and'../../constants/appConfig'for the other. How isAPPCONFIGexported from that file though? What, if any, error are you receiving?AppConfignotappConfig.