Skip to main content

All Questions

Tagged with
0 votes
0 answers
21 views

Err: The requested module 'redux-thunk' does not provide an export named 'default' [duplicate]

I am currently learning redux and encountered an issue with importing redux-thunk in my Node.js project. I’m trying to set up middleware for my Redux store, but when I attempt to import redux-thunk, I ...
elclasico's user avatar
1 vote
1 answer
95 views

Uncaught Error: `reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers

I'm building a React and Node.js app. In the frontend, in the src folder, there's a folder called store that contains a file called index.js that calls the root reducer index.js import { ...
SecondAccount's user avatar
0 votes
1 answer
33 views

Unable to Fetch Posts by Search Criteria in React Application Using Redux and Express.js Backend

I'm building a React application with Redux for state management and an Express.js backend for handling API requests. I'm trying to implement a search functionality to fetch posts based on search ...
LOKESH R's user avatar
1 vote
1 answer
373 views

Getting TypeError: middleware is not a function

I am learning Redux, so wrote below logic by following online resources, but it throws this error: /home/sssawant/Sarvesh/notes_fullstack/frontend/React_notes/redux_demo/node_modules/redux/dist/cjs/...
Sarvesh Sawant's user avatar
0 votes
0 answers
780 views

Fabric.js and React

I'm in the process of building an online editing app using fabric.js and React. I initialize the canvas and store its reference in Redux. With this reference, I'm able to add text or shapes to the ...
Zohaib Amir's user avatar
0 votes
1 answer
311 views

Loading Data from MongoDB into Redux Store fetching

After successfully setting up my Node API and MongoDB, my current focus is on integrating Redux into my application. I'll try to share code snippets here. Server Order controller works as expected : ...
user22498683's user avatar
1 vote
2 answers
69 views

TypeError: Dispatch Action is not a function in Redux Toolkit

I am learning the redux toolkit and unfortunately, I have faced an error like Type Error but I failed to make a solution. Create Counter Slice const { createSlice } = require("@reduxjs/toolkit&...
Imdadul Haque's user avatar
4 votes
2 answers
3k views

An unhandled error occurred processing a request for the endpoint while using createApi(nodejs)

I am using RTK Query for fetching and Caching the data in plain javascript(without react)in nodejs environment. enter image description here I am using the above code which is found in the official ...
MEKALA DEEKSHITHA REDDY's user avatar
1 vote
0 answers
109 views

react-redux context value; please ensure the component is wrapped in a <Provider>

I want to add live chat function like another screen in my app. And when I creaetd this screen and open the browser and click on Support button , where is live chat screen , in the console write : ...
nik_kolev's user avatar
3 votes
2 answers
234 views

How to load a user in React-Redux app only when logged in?

The project in question is an e-commerce web app. It allows a user to add items to cart, and after register/login to proceede to payment. The problem is, when the homepage loads, if the user is not ...
5fingered sloth's user avatar
0 votes
0 answers
186 views

TypeError: Cannot read properties of undefined reading 'getsState' issue while setting up redux for application

I have a redux application that I am currently setting up and I am getting the following error that I am not sure about. I am trying to fix it so I can start developing the application. Provider.js:20 ...
ojandali's user avatar
  • 203
0 votes
1 answer
692 views

Authorization token not being sent to backend

I am trying to create a store, and I'm currently working on the front end wishlist, using redux. I am trying to configure the add to wishlist, but for some reason, I keep getting the error that I did ...
Kevin Bandison's user avatar
0 votes
1 answer
82 views

a variable becomes undefined somewhere in a reducer but it works fine in another reducer, react native, Redux

I am programming my first react native app. In this app, a chatbot, dialogs are incremented using an int (say intToFollow) that keeps track of how many phrases have been shown and each phrase is shown ...
W B's user avatar
  • 13
0 votes
1 answer
59 views

Error: Expected the root reducer to be a function. Instead, received: 'undefined' Vanilla JS - Redux

I am learning redux and tried some code following a YouTube video. I created a simple Vanilla JS App and installed redux in it but when I run the app in the terminal I am getting "Error: Expected ...
Taha Ansari's user avatar
2 votes
0 answers
90 views

Why product array is not displaying all elements while using state from useSelector?

Here, the product is not showing all elements from the array. This is Home Code. I made a schema of products now I made a reducer.js file in which I assigned products=> array now this fetch details ...
Hatim Nalwala's user avatar

15 30 50 per page
1
2 3 4 5
21