-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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 running yarn install + gatsby build. ERROR #11321 PLUGIN. Error while running the createPages lifecycle: Reducers may not dispatch actions. #25478
Comments
Having the same issue. Unable to build: ` Reducers may not dispatch actions. |
Investigating |
Ok, this seems related to recent release of
to your package.json file, rerun |
Edited after seeing @pieh comment, we're using npm. Experiencing the same issue when building.
|
resolutions added but I get the same error as before. |
Im having the same issue in projects that use a theme.
However i'm only having this issue on Netlify and not locally. Also I started to see this warning during build:
|
Yeah, For those cases - if you run |
@t2ca In my project I'm also using a theme. Similar to you in my case the error is in the pipeline but locally builds good. I added the resolutions manually, I'm having issues setting resolution in a workspace, any suggestions? |
Yeah, I deleted my comment after I realized I wrote almost exactly what you did (great minds), but for what it's worth, For the first issue, |
I opened #25483 to adjust xstate code, but we can't fix older releases, those will need to rely on |
Resolved based on suggestion from this thread gatsbyjs/gatsby#25478 I honestly don't have the energy to continue digging deeper into this and will chalk this up to the terrible that is the JS ecosystem
I just released |
|
|
Resolved based on suggestion from this thread gatsbyjs/gatsby#25478 I honestly don't have the energy to continue digging deeper into this and will chalk this up to the terrible that is the JS ecosystem
Resolved based on suggestion from this thread gatsbyjs/gatsby#25478 I honestly don't have the energy to continue digging deeper into this and will chalk this up to the terrible that is the JS ecosystem
Resolved based on suggestion from this thread gatsbyjs/gatsby#25478 I honestly don't have the energy to continue digging deeper into this and will chalk this up to the terrible that is the JS ecosystem
Resolved based on suggestion from this thread gatsbyjs/gatsby#25478 I honestly don't have the energy to continue digging deeper into this and will chalk this up to the terrible that is the JS ecosystem
Nothing more satisfying than googling a problem that you've never had before only to find a GH issue created hours before you looked. Working for me too, thanks so much everybody who maintains this project! <3 |
Thank you for opening this, We're marking this issue as answered and closing it for now but please feel free to reopen this and comment if you would like to continue this discussion. We hope we managed to help and thank you for using Gatsby! 💜 |
Thank you guys! gatsby@2.23.18 fixed the issue for me as well |
Thanks guys, well done! |
Description
Since today 2nd July 16:00 CET when trying to run yarn install + gatsby build with gatsby 2.6.7 the following error is outputted. Codebase was not changed.
ERROR #11321 PLUGIN
"gatsby-theme-style-guide" threw an error while running the createPages lifecycle:
Reducers may not dispatch actions.
Error: Reducers may not dispatch actions.
redux.js:214 dispatch
[build_blog]/[redux]/lib/redux.js:214:13
index.js:67
[build_blog]/[gatsby]/dist/redux/index.js:67:88
index.js:14 Object.dispatch
[build_blog]/[redux-thunk]/lib/index.js:14:16
index.js:45 dispatch
[build_blog]/[gatsby-cli]/lib/reporter/redux/index.js:45:9
redux.js:483 Object.createLog
[build_blog]/[redux]/lib/redux.js:483:12
reporter.js:168 Reporter.warn
[build_blog]/[gatsby-cli]/lib/reporter/reporter.js:168:41
patch-console.js:22 Object.console.warn
[build_blog]/[gatsby-cli]/lib/reporter/patch-console.js:22:14
utils.js:449 Object.warn
[build_blog]/[xstate]/lib/utils.js:449:26
StateNode.js:1313
[build_blog]/[xstate]/lib/StateNode.js:1313:29
Array.map
StateNode.js:1311 StateNode.formatTransitions
[build_blog]/[xstate]/lib/StateNode.js:1311:18
StateNode.js:321 StateNode.get [as transitions]
[build_blog]/[xstate]/lib/StateNode.js:321:51
StateNode.js:296 StateNode.get [as on]
[build_blog]/[xstate]/lib/StateNode.js:296:36
StateNode.js:230
[build_blog]/[xstate]/lib/StateNode.js:230:93
Array.forEach
StateNode.js:230 StateNode._init
[build_blog]/[xstate]/lib/StateNode.js:230:45
failed createPages - 101.229s
Steps to reproduce
yarn workspace website gatsby build
Expected result
Build should finish running.
Actual result
Error on build process
Environment
System:
OS: Linux 4.4 Alpine Linux
CPU: (4) x64 Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
Shell: 1.30.1 - /bin/ash
Binaries:
Node: 13.11.0 - /usr/bin/node
Yarn: 1.22.4 - /usr/local/bin/yarn
npm: 6.14.2 - /usr/bin/npm
Languages:
Python: 2.7.18 - /usr/bin/python
npmGlobalPackages:
gatsby-cli: 2.12.56
The text was updated successfully, but these errors were encountered: