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

gatsby build throws "Reducers may not dispatch actions" #2

Closed
synesthesia opened this issue Jul 2, 2020 · 2 comments · Fixed by #3
Closed

gatsby build throws "Reducers may not dispatch actions" #2

synesthesia opened this issue Jul 2, 2020 · 2 comments · Fixed by #3

Comments

@synesthesia
Copy link

synesthesia commented Jul 2, 2020

Hi Mathieu

I love the idea, but fell at first hurdle...

error "gatsby-theme-garden" threw an error while running the createPages lifecycle:
Reducers may not dispatch actions.

After first getting this I edited _layouts/gatsby-config.js to set the pathPrefix to the subdirectory my GH Pages appears at but still same error. Any clues please?

module.exports = {
  pathPrefix: `/garden`,
  siteMetadata: {
    title: `Garden`,
  },
  plugins: [
    {
      resolve: `gatsby-theme-garden`,
      options: {
        rootNote: "readme",
        contentPath: `${__dirname}/..`,
        ignore: [
          "**/_layouts/**",
          "**/.git/**",
          "**/.github/**",
          "**/.vscode/**",
        ],
      },
    },
  ],
};

Further tests:

  • did a straight fork of you repo and the build fails in the same way.
  • then tried fixing the Gatsby version at the exact base version in package.json but still no change
@mathieudutour
Copy link
Owner

mathieudutour commented Jul 2, 2020

it's an issue with Gatsby: gatsbyjs/gatsby#25478. Should be fixed soon

@synesthesia
Copy link
Author

synesthesia commented Jul 3, 2020

I see the team have released an update so will will try with new version of Gatsby

synesthesia added a commit to synesthesia/foam-gatsby-template that referenced this issue Jul 3, 2020
synesthesia added a commit to synesthesia/foam-gatsby-template that referenced this issue Jul 3, 2020
mathieudutour added a commit that referenced this issue Jul 3, 2020
Update Gatsby minimum to gatsby@2.23.1, fixes #2
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

Successfully merging a pull request may close this issue.

2 participants