Skip to content

v1-route-convention can't start server problem #6256

Closed Answered by marcfalk
dealtek asked this question in Q&A
Discussion options

You must be logged in to vote

Although I am not using @remix-run/v1-route-convention I did run into the same error message. This thread was the only result on Google so I thought my solution might help OP or someone swinging by.

TLDR: Make sure .DS_Store and other non-route files are not present in the /routes directory.

I had this config using Remix v. 1.16.0:

module.exports = {
  cacheDirectory: './node_modules/.cache/remix',
  future: {
    v2_errorBoundary: true,
    v2_routeConvention: true,
    v2_normalizeFormMethod: true,
  },
}

And I got this error:

Error: Cannot add empty string to PrefixLookupTrie
    at PrefixLookupTrie.add (/path_to_project/node_modules/@remix-run/dev/dist/config/flat-routes.js:38:23)
  …

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@dealtek
Comment options

Comment options

You must be logged in to vote
6 replies
@kiliman
Comment options

@zachdtaylor
Comment options

@beerlington
Comment options

@cyberwombat
Comment options

@Otann
Comment options

Answer selected by dealtek
Comment options

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