this is in the same file, why is it not detecting my imported notion page?
Unanswered
Sloth bear posted this in #help-forum
Sloth bearOP
i have a notion page component i want to export as the component for this page but its not working. the import is at the top of the page and i can autocomplete the NotionPage just fine at the top but in the scope of the page export function for the file, it wont detect NotionPage. why is this?
1 Reply
@Sloth bear i have a notion page component i want to export as the component for this page but its not working. the import is at the top of the page and i can autocomplete the NotionPage just fine at the top but in the scope of the page export function for the file, it wont detect NotionPage. why is this?
Your issue is that you are importing it in a
.ts file instead of a .tsx file. Rename your file to [...slug].tsx.