-
Hi all, getting started w remix I tried to set as suggested below: but now run npm dev has errors: Error: Cannot add empty string to PrefixLookupTrie To ensure that you can follow along smoothly, you should therefore switch to the "v1" structure as well - which can be done by following these steps:
---> also next I replaced previous content with below (not added extra is that correct?) <----
`const {
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Hey @dealtek, could you describe how you created and tried to run your project initially? It seems that you're mixing v1 & v2 routes conventions, and that won't work |
Beta Was this translation helpful? Give feedback.
-
Although I am not using TLDR: Make sure I had this config using Remix v. 1.16.0:
And I got this error:
I tried installing remix-flat-routes. According to the docs I used this config:
That gave me another and more explicit error message:
I cleared my whole project of
Now, I was able to run ✌️ |
Beta Was this translation helpful? Give feedback.
-
Hi marcfalk - wow that was some good research I would not know about the |
Beta Was this translation helpful? Give feedback.
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:
And I got this error: