All Questions
229
questions
1
vote
0
answers
446
views
Module parse failed: Unexpected token (426:12) I am unable to use Redux Toolkit with React
I am working on a template by Metronic which has the react version ^17.0.2
package.json
{
"name": "demo1",
"version": "8.0.38",
"private": true,
...
0
votes
0
answers
124
views
Use redux dispatch from public folder in React
I am working on a code that uses scripts within the public folder to instantiate certain parts of my React app. I've setup a Redux store on the src folder to maintain a state that performs a certain ...
1
vote
0
answers
1k
views
React micro-frontend with module federation and Redux
I'm currently developing a micro-frontend application using React, webpack and module federation. It consists of one container app, and two "children" / remotes. The container app consist of ...
3
votes
1
answer
591
views
React, Redux , Typescript and Sass bundled using Webpack and Vite
So I created two projects using React + Redux + SASS + Typescript with
Vite and Webpack.
I was amazed using Vite as the configuration part was pre handled as compared to Webpack. But again my project ...
0
votes
0
answers
30
views
React and Webpack Issue
I have started to build a React App and implemented 3 pages which worked fine.
After structuring the first page, my app crashed and I am not able to restart it since.
I don´t know if it has something ...
1
vote
0
answers
233
views
Uncaught Error: Automatic publicPath is not supported in this browser at content.js:1:8557
i am new in react, after i run my application for testing the redux functionality, the chrome browser gives this error.
content.js:1 Uncaught Error: Automatic publicPath is not supported in this ...
12
votes
4
answers
26k
views
Dev Server has been initialized using an options object that does not match the API schema. unknown property 'publicPath'
I am using webpack: 5.71.0
webpack-cli: 4.9.2
webpack-dev-server 4.8.1
in my webpack.config.js
const path = require('path');
const webpack = require('webpack');
module.exports = {
entry: './src/...
2
votes
0
answers
1k
views
Webpack Uncaught Reference Error in the console of React Redux project
In my React Redux app, it just shows a white screen after running npm start. There is one error in the console-
Uncaught ReferenceError: Cannot access '__WEBPACK_DEFAULT_EXPORT__' before ...
4
votes
2
answers
21k
views
webpack-cli: Invalid options object. Dev Server has been initialized using an options object
I would like to start a redux project and the package.json is provided below:
{
"name": "redux-starter",
"version": "1.0.0",
"description": &...
0
votes
1
answer
120
views
Why does webpack take 4 seconds to compile an empty react / redux project?
I am concerned it is compiling my node_modules despite me asking to exclude it. How can I look and see what it is actually doing. The output in the console looks like gibberish. Is there a way to ...
0
votes
0
answers
45
views
Image Path not resolving properly React while using resolve(path)
Need your help.
I am trying to display an image in our application and I am using require(path) as below.
const logo = require('../../public/images/logo.png');
in my img src..I am using as
<img ...
0
votes
0
answers
810
views
Cannot read properties of undefined (reading 'createContext') while not using createContext
I'm very new to react and MERN stack at general. I have this error that initially was that react was duplicated so i followed some tutorials and got to "fixed"(just to have this error).
...
1
vote
0
answers
54
views
How to pass data between react embeddable widgets using redux
I have two widgets called "search widget" and "Name Widget", and I build those widget using webpack. I want to pass data from search widget to name widget. This is not like passing ...
0
votes
0
answers
281
views
Why sometimes part of redux state in next.js app is undefined?
I've seen error in Sentry. It says: "undefined is not an object", and shows snippet like this:
const someVariable = useSelector((state) => state.someReducer.someVariable);
It is very hard ...
1
vote
0
answers
271
views
Stack trace source maps not applied for Cannot update a component while rendering a different component warning
I'm looking for some advice to help me debug a warning in one of my react-redux applications.
Problem
I'm receiving this warning below with a confusing stack trace. I believe I understand the problem/...