Error: The default export is not a React Component in page: "/notes"
Answered
xypé posted this in #help-forum
xypéOP
Error: The default export is not a React Component in page: "/notes"
what could be the cause of this throwing an error?
const NotesPage = () => {
return (
<div>
<p>NotesPage</p>
</div>
);
};
export default NotesPage;what could be the cause of this throwing an error?
4 Replies
xypéOP
Never mind, I forgot that I had an empty Layout.tsx
Answer
xypéOP
Sorry
@xypé Never mind, I forgot that I had an empty Layout.tsx
Largehead hairtail
mark as a solution
@Largehead hairtail mark as a solution
ig ill mark it as they don't want to