I have a project with the following structure :
Project :
-client
-layouts
-mainlayouts.jsx
-components
-homepage.jxs
-lib
-routes.jsx
So in my routes.jsx I want to import module from mainlayouts and hompepage, and this is what I did:
import {MainLayout} from '../client/layouts/mainlayouts.jsx';
import HomePage from '../client/templates/homepage.jxs';
But I got this error:
Error: Cannot find module '../client/layouts/mainlayouts.jsx'
Also tried with absolute path:
import {MainLayout} from '/client/layouts/mainlayouts.jsx';
And still got the error.
What did I do wrong?