Dynamic route not working
I am currently utilizing the plugin-api with the following versions:
- @sapphire/framework": "^4.2.2
- @sapphire/plugin-api": "^5.0.2"
Prior to updating to the most recent version, everything was functioning without issue. However, after updating, when I set a route as
anyRoute/:code
, attempting to access it results in a 404 error.
On the other hand, if I set the route to anyRoute
, I am able to access it without any problems.
Example:
Solution:Jump to solution
Okay! It started working after deleting the node_modules folder and reinstalling.
4 Replies
it works just fine when I try it.
Solution
Okay! It started working after deleting the node_modules folder and reinstalling.
Sorry 😦
That's basically the "did you try turning it off and on again" of NodeJS https://www.youtube.com/watch?v=nn2FB1P_Mn8&t=10s
Cam G Videos
YouTube
IT Crowd - Have You Tried Turning It Off And On Again?
NEW CHANNEL:
https://www.youtube.com/channel/UCEjwgKUADCmMzhGHrlueKYw
This channel will become inactive in a few weeks. Thank you all for watching :)