Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined #23

Closed
necrojan opened this issue Mar 1, 2020 · 4 comments

Comments

@necrojan
Copy link

necrojan commented Mar 1, 2020

Hi, Thank you for this awesome plugin.
I created my site using stackbit so I can have it up and running quickly.
I've tried to use this plugin and Ive followed the instructions in the installation. But right after I
step no. 2 and I run the site npm run develop I immediately encounter this error

Plugin gatsby-remark-page-creator returned an error The "path" argument must be of type string. Received type undefined Error: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be type string. Received type undefined

I am new to gatsby so I am not sure how to fix the error.

Thank you.

@AriTheElk
Copy link
Member

Hello @necrojan, welcome to the world of gatsby :)

What OS are you on and what version of gatsby are you using?

@necrojan
Copy link
Author

necrojan commented Mar 3, 2020

Thank you for your response and welcome @garetmckinley
I've finally manged to sort it on my own :)
I'll close this now

@necrojan necrojan closed this as completed Mar 3, 2020
@rohit-gohri
Copy link

Thank you for your response and welcome @garetmckinley
I've finally manged to sort it on my own :)
I'll close this now

Could you tell how you fixed it? I'm receiving the same error

@rohit-gohri
Copy link

Figured it out, needed to add logic to create slugs for pages in gatsby-node.js.
https://www.gatsbyjs.org/docs/creating-slugs-for-pages/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants