Dynamic route: “the ‘id’ argument must be of type string. Received null #16593
Unanswered
jenkshields
asked this question in
Help
Replies: 1 comment 1 reply
-
What's the path of the page that you've created? Something like |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hiya! I’m running into an issue with generating dynamic pages. I’m pulling data from Sanity, and I think I’ve got the code right, but every time I try load the page I get a type error - “the ‘id’ argument must be of type string. Received null”. The file is named ‘/post/[slug].js’, so that’s the variable name I’ve used throughout - I’m not sure where id is coming from, or if it’s something extra I need to pass, or if I’m not passing my slug right! Any help greatly appreciated!
Update: this seems to be a specific error with the iPadOS app play.js - either the app itself or the configuration it uses. Running this in a desktop environment doesn’t bring up this error.
Beta Was this translation helpful? Give feedback.
All reactions