# Redux

**URL:** https://forum.codewithmosh.com/c/redux/15.md

[Latest](https://forum.codewithmosh.com/latest.md) · [Categories](https://forum.codewithmosh.com/categories.md)

---

## [About the Redux category](https://forum.codewithmosh.com/t/about-the-redux-category/26)

<div class="topic-metadata">

**Author:** [@Mosh](https://forum.codewithmosh.com/u/Mosh)\
**Replies:** 0\
**Last updated:** [October 22, 2020, 10:29pm UTC](https://forum.codewithmosh.com/t/about-the-redux-category/26 "2020-10-22T22:29:14Z")

</div>

---

## [Redux project won't start](https://forum.codewithmosh.com/t/redux-project-wont-start/21948)

<div class="topic-metadata">

**Author:** [@bubye](https://forum.codewithmosh.com/u/bubye)\
**Replies:** 6\
**Last updated:** [April 28, 2025, 8:05pm UTC](https://forum.codewithmosh.com/t/redux-project-wont-start/21948 "2025-04-28T20:05:58Z")

</div>

Hello, I just have started redux course and on the very beginning there is an issue after using “npm i” in console, in “Setting Up the Development Environment” section. First when I try to install npm I get an “npm WARN …

---

## [Redux-starter code doesn't run](https://forum.codewithmosh.com/t/redux-starter-code-doesnt-run/9912)

<div class="topic-metadata">

**Author:** [@cqi123](https://forum.codewithmosh.com/u/cqi123)\
**Replies:** 5\
**Last updated:** [June 30, 2024, 4:22am UTC](https://forum.codewithmosh.com/t/redux-starter-code-doesnt-run/9912 "2024-06-30T04:22:35Z")

</div>

Hi, I downloaded the starter files and when I ran ‘npm i’ then ‘npm start’ in the redux-starter folder, it doesn’t run on localhost 9000. it doesn’t run anywhere.

---

## [Redux DevTools -\> Can't connect to VSCode](https://forum.codewithmosh.com/t/redux-devtools-cant-connect-to-vscode/23569)

<div class="topic-metadata">

**Author:** [@pk4](https://forum.codewithmosh.com/u/pk4)\
**Replies:** 1\
**Last updated:** [March 22, 2024, 9:52am UTC](https://forum.codewithmosh.com/t/redux-devtools-cant-connect-to-vscode/23569 "2024-03-22T09:52:47Z")

</div>

“Debugging Redux Applications-\>Tracing”. Click “this button and select VS Code…” . The problem is that I don’t have “this button”.

---

## [Export 'getDefaultMiddleware' (imported as 'getDefaultMiddleware') was not found in '@reduxjs/toolkit'](https://forum.codewithmosh.com/t/export-getdefaultmiddleware-imported-as-getdefaultmiddleware-was-not-found-in-reduxjs-toolkit/24406)

<div class="topic-metadata">

**Author:** [@rocumen28](https://forum.codewithmosh.com/u/rocumen28)\
**Replies:** 0\
**Last updated:** [January 3, 2024, 4:21am UTC](https://forum.codewithmosh.com/t/export-getdefaultmiddleware-imported-as-getdefaultmiddleware-was-not-found-in-reduxjs-toolkit/24406 "2024-01-03T04:21:38Z")

</div>

if ever you encounter this. it could be fix using this line of code. import { configureStore } from “@reduxjs/toolkit”; import reducer from “./reducer”; import logger from “./middleware/logger”; import toast from “./…

---

## [Is "The Ultimate Redux Course" still relevant?](https://forum.codewithmosh.com/t/is-the-ultimate-redux-course-still-relevant/21491)

<div class="topic-metadata">

**Author:** [@ashketchum18459](https://forum.codewithmosh.com/u/ashketchum18459)\
**Replies:** 3\
**Last updated:** [July 19, 2023, 7:30am UTC](https://forum.codewithmosh.com/t/is-the-ultimate-redux-course-still-relevant/21491 "2023-07-19T07:30:33Z")

</div>

I am new to frontend. Just started the “React 18 for beginners” course. As a part of the Front-end development learning path, I see that “The Ultimate Redux course” succeeds the “React: Intermediate Topics” course. Give…

---

## [Error In Setting Up The Development Server For Redux-Starter Project](https://forum.codewithmosh.com/t/error-in-setting-up-the-development-server-for-redux-starter-project/5981)

<div class="topic-metadata">

**Author:** [@maheshdhaka147](https://forum.codewithmosh.com/u/maheshdhaka147)\
**Replies:** 2\
**Last updated:** [June 6, 2023, 12:59am UTC](https://forum.codewithmosh.com/t/error-in-setting-up-the-development-server-for-redux-starter-project/5981 "2023-06-06T00:59:01Z")

</div>

I download the Redux-Starter Folder and run: npm i And after that run: npm start But it produces some error

---

## [Uncaught SyntaxError: Cannot use import statement outside a module](https://forum.codewithmosh.com/t/uncaught-syntaxerror-cannot-use-import-statement-outside-a-module/20289)

<div class="topic-metadata">

**Author:** [@Tugrul](https://forum.codewithmosh.com/u/Tugrul)\
**Replies:** 0\
**Last updated:** [May 16, 2023, 6:37pm UTC](https://forum.codewithmosh.com/t/uncaught-syntaxerror-cannot-use-import-statement-outside-a-module/20289 "2023-05-16T18:37:54Z")

</div>

Hello everyone , I have a bug that descripted, that i can’t use import-statement outside the module. two things that i apply. (1) in the index.html =\> type=“module” (2) in package.json =\> “type”: “module”, I also u…

---

## [Where can I find source code of courses?](https://forum.codewithmosh.com/t/where-can-i-find-source-code-of-courses/3134)

<div class="topic-metadata">

**Author:** [@Kuan](https://forum.codewithmosh.com/u/Kuan)\
**Replies:** 2\
**Last updated:** [May 16, 2023, 5:51pm UTC](https://forum.codewithmosh.com/t/where-can-i-find-source-code-of-courses/3134 "2023-05-16T17:51:58Z")

</div>

I have subscribed to the redux, and react course. Anyone knows where can I find the source code of the courses?

---

## [Redux course redux dev tools trace](https://forum.codewithmosh.com/t/redux-course-redux-dev-tools-trace/1254)

<div class="topic-metadata">

**Author:** [@cates](https://forum.codewithmosh.com/u/cates)\
**Replies:** 3\
**Last updated:** [March 9, 2023, 3:39pm UTC](https://forum.codewithmosh.com/t/redux-course-redux-dev-tools-trace/1254 "2023-03-09T15:39:21Z")

</div>

I am going through the redux course and trying to get the trace option working in dev tools. when I set trace to true I get the following message in the trace section of dev tools. the code compiles, but this error sti…

---

## [Problems with Redux](https://forum.codewithmosh.com/t/problems-with-redux/16569)

<div class="topic-metadata">

**Author:** [@Serhii](https://forum.codewithmosh.com/u/Serhii)\
**Replies:** 0\
**Last updated:** [November 21, 2022, 6:38am UTC](https://forum.codewithmosh.com/t/problems-with-redux/16569 "2022-11-21T06:38:43Z")

</div>

Hello, guys! I’m wondering if someone can help me! I’m currently learning Redux and I stuck on the lecture 4 API Middleware of the CONSUMING APIs module. When I try to start my backend it throws an error!

---

## [Absence of coding challenges solutions](https://forum.codewithmosh.com/t/absence-of-coding-challenges-solutions/14161)

<div class="topic-metadata">

**Author:** [@Orange\_Rookie](https://forum.codewithmosh.com/u/Orange_Rookie)\
**Replies:** 0\
**Last updated:** [August 5, 2022, 5:00pm UTC](https://forum.codewithmosh.com/t/absence-of-coding-challenges-solutions/14161 "2022-08-05T17:00:55Z")

</div>

Hello, It seems that the solutions for the coding challenges in section ‘Functional Programming in JavaScript’ are absent from the folder where it should be. i downloaded twice and searched but i couldnt find it. Can a…

---

## [Cannot understand the setup of API middleware](https://forum.codewithmosh.com/t/cannot-understand-the-setup-of-api-middleware/12659)

<div class="topic-metadata">

**Author:** [@Samiul\_Shibly](https://forum.codewithmosh.com/u/Samiul_Shibly)\
**Replies:** 0\
**Last updated:** [May 27, 2022, 5:31am UTC](https://forum.codewithmosh.com/t/cannot-understand-the-setup-of-api-middleware/12659 "2022-05-27T05:31:52Z")

</div>

Please anyone explain me the setup of API middleware. How it’s being working with backend?

---

## [Are the reducers really pure functions when using lastId or Date.now?](https://forum.codewithmosh.com/t/are-the-reducers-really-pure-functions-when-using-lastid-or-date-now/12363)

<div class="topic-metadata">

**Author:** [@allamasln](https://forum.codewithmosh.com/u/allamasln)\
**Replies:** 0\
**Last updated:** [May 10, 2022, 12:47pm UTC](https://forum.codewithmosh.com/t/are-the-reducers-really-pure-functions-when-using-lastid-or-date-now/12363 "2022-05-10T12:47:22Z")

</div>

I’m finishing the Redux course and i need your help to understand properly some things about reducers and pure functions. My English is not good but i will try it: In the section “Redux Fundamentals” we learned that re…

---

## [CombineReducers from Redux Course](https://forum.codewithmosh.com/t/combinereducers-from-redux-course/10884)

<div class="topic-metadata">

**Author:** [@bobmoss14](https://forum.codewithmosh.com/u/bobmoss14)\
**Replies:** 1\
**Last updated:** [February 23, 2022, 4:35am UTC](https://forum.codewithmosh.com/t/combinereducers-from-redux-course/10884 "2022-02-23T04:35:26Z")

</div>

On the slide 4 - combining Reducers I have used the following reducer code: import { combineReducers } from “redux”; import bugsReducer from ‘./bugs’; import projectsReducer from ‘./projects’; export default combineR…

---

## [Source code redux course](https://forum.codewithmosh.com/t/source-code-redux-course/8698)

<div class="topic-metadata">

**Author:** [@lalilunar](https://forum.codewithmosh.com/u/lalilunar)\
**Replies:** 1\
**Last updated:** [November 23, 2021, 5:04pm UTC](https://forum.codewithmosh.com/t/source-code-redux-course/8698 "2021-11-23T17:04:48Z")

</div>

Hi, I can’t find the redux source coude from Mosh in the course, It has been removed? I used to have it but now is not there anymore. Is there any reason for that? Is the course not updated? thanks in advance.

---

## [CreateSelector doesn't memoise getBugsByUser](https://forum.codewithmosh.com/t/createselector-doesnt-memoise-getbugsbyuser/7287)

<div class="topic-metadata">

**Author:** [@Econno11y](https://forum.codewithmosh.com/u/Econno11y)\
**Replies:** 1\
**Last updated:** [November 13, 2021, 4:47pm UTC](https://forum.codewithmosh.com/t/createselector-doesnt-memoise-getbugsbyuser/7287 "2021-11-13T16:47:57Z")

</div>

I am going through Mosh’s redux course. I just followed along and implemented the solution to the challenge of assigning a user to a bug. At the end of the challenge, he shows us how to add a memoised getBugsByUser func…

---

## [Redux Toolkit | createSlice | bugRemoved action dispatch not working](https://forum.codewithmosh.com/t/redux-toolkit-createslice-bugremoved-action-dispatch-not-working/6367)

<div class="topic-metadata">

**Author:** [@Anh](https://forum.codewithmosh.com/u/Anh)\
**Replies:** 0\
**Last updated:** [July 26, 2021, 12:28am UTC](https://forum.codewithmosh.com/t/redux-toolkit-createslice-bugremoved-action-dispatch-not-working/6367 "2021-07-26T00:28:16Z")

</div>

I’m not sure why the bugRemoved action is not working. My code as below. I thought the last state would have 2 bugs only, but it still has 3. import { createSlice } from '@reduxjs/toolkit'; let lastId = 0; const slic…

---

## [Redux Slicer with Angular](https://forum.codewithmosh.com/t/redux-slicer-with-angular/6311)

<div class="topic-metadata">

**Author:** [@bekadan](https://forum.codewithmosh.com/u/bekadan)\
**Replies:** 0\
**Last updated:** [July 23, 2021, 9:13am UTC](https://forum.codewithmosh.com/t/redux-slicer-with-angular/6311 "2021-07-23T09:13:55Z")

</div>

In React there is no problem, I can implement all thing link in videos. But when it comes to angular I don’t know how to implement redux and redux slicer to create actions etc. in a clean-coding way. Is there any exampl…

---

## [Redux-devtools and extension can not display when using redux-toolkit](https://forum.codewithmosh.com/t/redux-devtools-and-extension-can-not-display-when-using-redux-toolkit/5932)

<div class="topic-metadata">

**Author:** [@DanielMa](https://forum.codewithmosh.com/u/DanielMa)\
**Replies:** 2\
**Last updated:** [July 6, 2021, 1:56am UTC](https://forum.codewithmosh.com/t/redux-devtools-and-extension-can-not-display-when-using-redux-toolkit/5932 "2021-07-06T01:56:13Z")

</div>

when i was following the video tutorial import the @reduxjs/toolkit to the project then the redux-devtools and extension can not dispalyed on the chrome console, i can’t find the reasons and the files code as below: con…

---

## [Result of dispatch to local component state](https://forum.codewithmosh.com/t/result-of-dispatch-to-local-component-state/4526)

<div class="topic-metadata">

**Author:** [@bobsys-mfleischer](https://forum.codewithmosh.com/u/bobsys-mfleischer)\
**Replies:** 0\
**Last updated:** [April 29, 2021, 10:39pm UTC](https://forum.codewithmosh.com/t/result-of-dispatch-to-local-component-state/4526 "2021-04-29T22:39:52Z")

</div>

Hello all, maybe one of you can help me with a problem. Analogous to Mosh’s Redux course, I have implemented an api middleware with Axios in my project. In my component I load a user via dispatch and want to update it…

---

## [Page not refreshing after changing index.js](https://forum.codewithmosh.com/t/page-not-refreshing-after-changing-index-js/3958)

<div class="topic-metadata">

**Author:** [@igor](https://forum.codewithmosh.com/u/igor)\
**Replies:** 1\
**Last updated:** [April 8, 2021, 9:03pm UTC](https://forum.codewithmosh.com/t/page-not-refreshing-after-changing-index-js/3958 "2021-04-08T21:03:49Z")

</div>

After I updated the index.js the ‘Hello world’ page in my browser doesn\` t change. The ‘npm start’ is still running. What I have to do to make my changes in index.js running ? Thanks! Igor

---

## [WebSocket connection failed](https://forum.codewithmosh.com/t/websocket-connection-failed/3968)

<div class="topic-metadata">

**Author:** [@jufriazzq](https://forum.codewithmosh.com/u/jufriazzq)\
**Replies:** 0\
**Last updated:** [April 8, 2021, 4:43pm UTC](https://forum.codewithmosh.com/t/websocket-connection-failed/3968 "2021-04-08T16:43:02Z")

</div>

how can I fix this error?

---

## [Cannot read 'type' of undefined: dispatch assignBugToUser](https://forum.codewithmosh.com/t/cannot-read-type-of-undefined-dispatch-assignbugtouser/3423)

<div class="topic-metadata">

**Author:** [@agomesd](https://forum.codewithmosh.com/u/agomesd)\
**Replies:** 1\
**Last updated:** [March 19, 2021, 4:25pm UTC](https://forum.codewithmosh.com/t/cannot-read-type-of-undefined-dispatch-assignbugtouser/3423 "2021-03-19T16:25:15Z")

</div>

Hello, I’m going mad here but I seem to be missing something. I keep getting this error: when dispatching assignBugToUser: Here is my action creator: And here is my reducer: I’ve tried comparing my code to M…

---

## [Await Dispatch in the React UI](https://forum.codewithmosh.com/t/await-dispatch-in-the-react-ui/2820)

<div class="topic-metadata">

**Author:** [@cyborg](https://forum.codewithmosh.com/u/cyborg)\
**Replies:** 0\
**Last updated:** [February 19, 2021, 1:22pm UTC](https://forum.codewithmosh.com/t/await-dispatch-in-the-react-ui/2820 "2021-02-19T13:22:53Z")

</div>

With reference to the Bugs application built during this course, there is the following method: return ( \<ul\> {bugs.map((bug) =\> ( \<li key={bug.id}\> {bug.description} \<button onClic…

---

## [Jest command not found - need to add "test" in scripts](https://forum.codewithmosh.com/t/jest-command-not-found-need-to-add-test-in-scripts/2094)

<div class="topic-metadata">

**Author:** [@Hongz](https://forum.codewithmosh.com/u/Hongz)\
**Replies:** 0\
**Last updated:** [January 19, 2021, 3:36pm UTC](https://forum.codewithmosh.com/t/jest-command-not-found-need-to-add-test-in-scripts/2094 "2021-01-19T15:36:22Z")

</div>

I followed test steps and jest command was not found. I had to add “test”: “jest --watchAll” in package.json and run “npm test”. “–watch” option is not supported without git/hg. must use “–watchAll” if you use redux-st…

---

## [7 - Social Tests - still "ReferenceError: regeneratorRuntime is not defined" - RESOLVED](https://forum.codewithmosh.com/t/7-social-tests-still-referenceerror-regeneratorruntime-is-not-defined-resolved/1978)

<div class="topic-metadata">

**Author:** [@Lukkar](https://forum.codewithmosh.com/u/Lukkar)\
**Replies:** 1\
**Last updated:** [January 15, 2021, 3:47pm UTC](https://forum.codewithmosh.com/t/7-social-tests-still-referenceerror-regeneratorruntime-is-not-defined-resolved/1978 "2021-01-15T15:47:52Z")

</div>

Mosh command didn’t work for me, so I’ve installed: $ npm install --save-dev @babel/plugin-transform-runtime But still, I get the error: ReferenceError: regeneratorRuntime is not defined My package.json: "devDep…

---

## [Request one entity instead of the list](https://forum.codewithmosh.com/t/request-one-entity-instead-of-the-list/1789)

<div class="topic-metadata">

**Author:** [@Adam](https://forum.codewithmosh.com/u/Adam)\
**Replies:** 0\
**Last updated:** [January 9, 2021, 2:07pm UTC](https://forum.codewithmosh.com/t/request-one-entity-instead-of-the-list/1789 "2021-01-09T14:07:43Z")

</div>

Hello everyone, I loved the Ultimate Redux Course, but one thing that I didn’t find is: How exactly should we handle getting single entity from the API (instead of the whole list). For example, If someone opens the webs…

---

## [Why Redux is not offline?](https://forum.codewithmosh.com/t/why-redux-is-not-offline/1582)

<div class="topic-metadata">

**Author:** [@Tanveer0209](https://forum.codewithmosh.com/u/Tanveer0209)\
**Replies:** 2\
**Last updated:** [January 1, 2021, 1:06pm UTC](https://forum.codewithmosh.com/t/why-redux-is-not-offline/1582 "2021-01-01T13:06:32Z")

</div>

Here is some internet issue in my area… so I need offline videos sometime. I want download Redux videos. so please provide me the download options for Redux also. I have taken your All Access subscription. Thanks Tanve…

---

## [Trace portion is not the same for the code](https://forum.codewithmosh.com/t/trace-portion-is-not-the-same-for-the-code/102)

<div class="topic-metadata">

**Author:** [@sanket1234](https://forum.codewithmosh.com/u/sanket1234)\
**Replies:** 1\
**Last updated:** [December 22, 2020, 1:23am UTC](https://forum.codewithmosh.com/t/trace-portion-is-not-the-same-for-the-code/102 "2020-12-22T01:23:46Z")

</div>

Trace portion which is being used along with the code in tutorials for redux dev tools is giving a different outcome want some help with this

[Next page](https://forum.codewithmosh.com/c/redux/15.md?page=1)
