Invalid value for getStaticPaths route parameter.
GetStaticPathsInvalidRouteParam: Invalid getStaticPaths route parameter for
KEY
. Expected undefined, a string or a number, receivedVALUE_TYPE
(VALUE
)
What went wrong?
Section titled What went wrong?Since params
are encoded into the URL, only certain types are supported as values.
In routes using rest parameters, undefined
can be used to represent a path with no parameters passed in the URL:
See Also:
Error Reference