Skip to content

Route error on Jokes tutorial #1451

Closed Answered by silvenon
dreoliv asked this question in Q&A
Discussion options

You must be logged in to vote

If this loader is the entire contents of your app/routes/jokes/index.tsx file, then the error makes sense. Routes must export either a component or a loader or both. If it doesn't, but the file exists, then Remix rightfully fails because of that.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by machour
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants