Skip to main content

All Questions

4 votes
3 answers
31k views

React Module Federation - Uncaught Error: Shared module is not available for eager consumption: webpack/sharing/consume/default/react/react

I am trying react module federation. I have created two react apps(modulefederation1, modulefederation2) using create-react-app command. I am getting 'Uncaught Error: Shared module is not available ...
apps's user avatar
  • 323
0 votes
0 answers
1k views

"Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node." on component rerender

I have found an issue that makes me unable to use react-router-dom links that's stated in the title. Minimal reproduction model: // index.js import React from "react"; import client from &...
Iqaru's user avatar
  • 97
2 votes
2 answers
1k views

webpack dev server only reloads once

Ok so now i have read a lot of different issues on stackoverflow without any luck, they seem all to go to an older version of webpack-dev-server. I have tried a lot of things but without any luck, my ...
Jimmy Lillegaard's user avatar
0 votes
1 answer
2k views

webpack for development mode

Hi i am using webpack in react application. how to differentiate development and production mode in webpack, when npm start dev mode also minifying files i dont want to minify in development mode, ...
Sudhir's user avatar
  • 569
0 votes
1 answer
399 views

How to configure webpack for react-easy-crop package while it shows cropper is not defined?

I am trying to configure webpack for my react project. But while it is working fine for other packages like sweetalert2 and all; it shows error for react-easy-crop package. Here is my .babelrc { &...
Supratim Hazarika's user avatar
2 votes
3 answers
3k views

React router with basename and webpack initial url

Hello i am stuck with this one and couldnt figure it out. So i have React router v6 with basename - "/ui/" , and i want that when i open localhost:8080 that it automatically turns into &...
eko's user avatar
  • 359
1 vote
0 answers
597 views

Cannot get Error on Page Refresh in production in react

I am getting this error when refresh the page or manually enter url devDependencies": { "@babel/core": "^7.17.8","@babel/preset-env": "^7.16.11","@...
asif kaif's user avatar
  • 159
0 votes
2 answers
853 views

Webpack "cannot get" when i refresh on subpage

So i am buiding an E-Learning app. Now yesterday i manually configured webpack const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); module.exports = { entry: path....
Sander van Maastricht's user avatar
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": &...
Arefe's user avatar
  • 12.2k
3 votes
1 answer
5k views

Add webpack plugins through config-overrides.js

I'm using react app with customized configuration without ejecting and for that I'm using react-app-rewire. To provide plugins to webpack, I used react-app-rewire-provide-plugin. After updating my ...
Sindujan Nirmalan's user avatar
0 votes
0 answers
545 views

My webpack compiled successfully but server not found

i'm setting up a React Webpack from scratch, webpack-dev-server is running normally, but the page is not load. I don't know which part is wrong. Please help if you know how to fix it. appreciate. ...
Lorain's user avatar
  • 1
1 vote
0 answers
316 views

Can't close webpack application with ctrl + C

I configure my react app with webpack service, after running webpack, i found issues that the web server is still running on the local port, i tries ctrl + C may times but still doesn't work until i ...
huy trần's user avatar
4 votes
1 answer
988 views

Webpack dev server with api history fallback doesn't work with react router v6 parameterised routes

Using Webpack dev server locally like so: devServer: { historyApiFallback: true } I have a router setup using react router v6 as following: <Routes> <Route path='/' element=...
James Jenkinson's user avatar
1 vote
0 answers
838 views

Unable to start my react application and getting error in webpack server

I don't know where am going wrong Am not sharing all package.json but whatever required am sharing. here is my package.json "scripts": { "develop": "webpack serve --...
user3599302's user avatar
0 votes
1 answer
2k views

compiler.plugin is not a function

I run npm run start command and I am getting this error:- Failed to compile. compiler.plugin is not a function npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] start: node ...
Yash Mudgal's user avatar

15 30 50 per page
1
3 4
5
6 7
48