I currently have my project folder as such
app - node_modules - public - src - Assets - Components - profiles - homepage - gulpfile In my homepage component, I am trying to import the whole directory of profiles into an object like this (dynamically load each component as needed, but not all components will be loaded)
import Comps from '../profiles/'; also
import * as Comps from '../profiles/; but I get an error in the compiler saying Module not found: Can't resolve '../profile.
I want to make it clear that profiles is a folder with components, and I want to select all components to call dynamically in my app.js file.
Why is this happening?