All Questions
309 questions
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 ...
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 { ...
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 ...
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/...
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 ...
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 :
...
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&...
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 ...
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 :
...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...