error in page routing
Answered
Cape lion posted this in #help-forum
Cape lionOP
Error: The default export is not a React Component in page: "/"
i am trying to route "/" from page.tsx inside (dashboard) folder but it is giving the error
i am trying to route "/" from page.tsx inside (dashboard) folder but it is giving the error
6 Replies
@Cape lion Error: The default export is not a React Component in page: "/"
i am trying to route "/" from page.tsx inside (dashboard) folder but it is giving the error
what's inside your layouts.tsx?
Can you try to put your dashboard text in a <p> Tag?
Can you try to put your dashboard text in a <p> Tag?
Cape lionOP
i tried putting it inside p tag and it still gives the same error
layout.tsx
@B33fb0n3 what's inside your layouts.tsx?
Can you try to put your *dashboard* text in a <p> Tag?
Cape lionOP
can it be because of two folders in ()
(dashboard) and (auth)
(dashboard) and (auth)
Himalayan
You are not exporting the layout?
Answer
@Himalayan You are not exporting the layout?
Cape lionOP
thanks it worked. i forgot to export the layout