Website is working but I continue to receive this message "A getStaticPaths() route pattern was matched, but no matching static path was found for requested path xxx".
What's the problem here so? Cause I've found some help post here but one just said "remove the prefix /"... I don't have any prefix like that but got the same error... anyone can help?
#A `getStaticPaths()` route pattern was matched, but no matching static path was found for requested
2 messages · Page 1 of 1 (latest)
This error happens when using dynamic routes in SSG and the passed parameter to the dynamic route does not match paths you entered in the function getStaticPaths().
To debug this what you can do is :
- log the list of all paths array you passed inside getStaticPaths()
- log each time you receive a parameter on the dynamic route page
- compare
if you need help with that, what you can do is share your code, with comments codebalocks to start or if you have a complex project then a repo link would be more efficient.