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 when adding siteMetaData. it won't run #22812

Closed
a-ditucalan opened this issue Apr 4, 2020 · 4 comments · Fixed by #23620
Closed

Error when adding siteMetaData. it won't run #22812

a-ditucalan opened this issue Apr 4, 2020 · 4 comments · Fixed by #23620
Labels
status: needs reproduction This issue needs a simplified reproduction of the bug for further troubleshooting. type: bug An issue or pull request relating to a bug in Gatsby

Comments

@a-ditucalan
Copy link

Description

When I tried to add siteMetaData in config file and start running it. it shows Error: Reducers may not dispatch actions. this is new project using gatsby-starter-hello-world-template

Steps to reproduce

module.exports = {
siteMetaData:{
title: 'Fullstack bootcamp'
},
plugins:[
'gatsby-plugin-sass',
],
}

Expected result

it should run the script gatsby develop

Actual result

it return error when I start running gatsby develop
image

Environment

System:
OS: macOS Mojave 10.14.6
CPU: (8) x64 Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 12.16.0 - /usr/local/opt/node@12/bin/node
Yarn: 1.19.1 - /usr/local/bin/yarn
npm: 6.13.4 - /usr/local/opt/node@12/bin/npm
Languages:
Python: 2.7.16 - /usr/bin/python
Browsers:
Chrome: 80.0.3987.149
Safari: 13.1
npmPackages:
gatsby: ^2.19.45 => 2.20.12
gatsby-plugin-sass: ^2.2.1 => 2.2.1
npmGlobalPackages:
gatsby-cli: 2.11.4

@a-ditucalan a-ditucalan added the type: bug An issue or pull request relating to a bug in Gatsby label Apr 4, 2020
@Js-Brecht
Copy link
Contributor

Hello @a-ditucalan. Can you share a minimal reproduction of the issue? It would help a great deal to track down the problem.

@Js-Brecht Js-Brecht added the status: needs reproduction This issue needs a simplified reproduction of the bug for further troubleshooting. label Apr 4, 2020
@Js-Brecht
Copy link
Contributor

Hey @a-ditucalan, I just noticed something: Data in siteMetaData shouldn't be capitalized.

If I make my gatsby-config look like that, I get the same error you do. I can't be 100% sure that's what's causing the issue, but at the very least, you won't be able to use that value in your project with it like it is.

@github-actions
Copy link

Hiya!

This issue has gone quiet. Spooky quiet. 👻

We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here.
If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!

Thanks for being a part of the Gatsby community! 💪💜

@github-actions github-actions bot added the stale? Issue that may be closed soon due to the original author not responding any more. label Apr 25, 2020
@pieh pieh removed the stale? Issue that may be closed soon due to the original author not responding any more. label Apr 28, 2020
@pieh
Copy link
Contributor

pieh commented Apr 28, 2020

Seems like we have fairly similar report in #23468 and we do have reproduction there (linked issue is bit more complex than just unhelpful error message)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs reproduction This issue needs a simplified reproduction of the bug for further troubleshooting. type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants