I'm trying to import a file from another folder But getting this error
./src/components/Body/index.js Module not found: Can't resolve '../../context' in '/home/workspace/reactjs/coding-practices/layoutBuilder/src/components/Body'
I've tried:
import ConfigurationContext from '../../context' import ConfigurationContext from './../context'
I want to import objects from context>ConfigurationContext.js
in Body>index.js
Try this
Because you didn't mention the file name in the path.