Home does not contain an export named Home

Solution 1:

The error is telling you that you are importing incorrectly. Here's the code you have to add:

import { Home } from './layouts/Home';

This is incorrect because you're exporting as the default export, not as a named export. Check this line:

export default Home;

You're exporting as default, not as a name. Thus, import Home like this:

import Home from './layouts/Home';

Notice there are no curly brackets. Further reading on import and export.

Solution 2:

Use

import Home from './layouts/Home'

rather than

import { Home } from './layouts/Home'

Remove {} from Home