Invalid Hook Call when using gatsby-starter-mdx-basic #26998
Labels
status: duplicate
This is duplicated by another issue or PR already submitted
type: bug
An issue or pull request relating to a bug in Gatsby
Description
It seems that creating a new project with
gatsby-plugin-mdx
always throws anError: Invalid hook call.
when using the dev server.Steps to reproduce
Clone MDX starter, start dev server and browse to http://localhost:8000
Expected result
The page should be accessible.
Actual result
The following error is encountered:
Environment
Notes
gatsby build
seems to work without issue.Adding
gatsby-plugin-layout
and configuring it to be the same template as the one used on posts seems to solve the problem, but it is fiddly (set the layout component to the component used in createPage).I have tried resetting cache/npm modules/package-lock.json/fiddling with package versions, without any luck. All starter packages relying on
gatsby-plugin-mdx
seem to be broken. The only exception i could find isgatsby-gitbook-starter
which works, but disabling the layout plugin yields the same error.Thanks a lot for your time
The text was updated successfully, but these errors were encountered: