N
Nuxt3mo ago
Than

$fetch not recognising all methods

I have a PUT method for this route, and if I ignore the error it still works - it's just Typescript being annoying. It gives me "PUT" and "put" as options if I use the route /api/hotels/:id but then I can't actually insert my id into the URL. Any one have an idea? I am using Nuxt3 with compatibilityVersion 4
No description
2 Replies
manniL
manniL3mo ago
yes, this is sadly a bug in radix3/h3
manniL
manniL3mo ago
GitHub
Lost Route params when using different method suffix files · Issue ...
Environment Stackblitz Reproduction https://stackblitz.com/edit/nitro-2389 Open /a/o - see alpha and omega params present (correct) Open /a/delta (delta is the name of the other folder here), see o...
Want results from more Discord servers?
Add your server