Skip to main content

All Questions

322 questions with no upvoted or accepted answers
9 votes
0 answers
3k views

EventSource's response has a MIME type ("text/html") that is not "text/event-stream". Aborting the connection

I've read a lot about this error, and I can't find the solution. hot reloading is not working, and I have an error: EventSource's response has a MIME type ("text/html") that is not "text/event-...
klijakub's user avatar
  • 845
7 votes
0 answers
1k views

webpack 5 migration - dev server - 404 error - Cannot GET "/"

I have a legacy React app which is should be updated from 16 to 17, webpack from v3 to v5 and babel. I had followed the offical webpack migration guides for deprecated plugins and configurations. ...
Mete Alp Kızılçay's user avatar
7 votes
0 answers
4k views

webpack-dev-server: Cannot get /

Unable to get a simple hello world working! server.js var webpack = require('webpack') var WebpackDevServer = require('webpack-dev-server') var config = require('./webpack.config') new ...
Rohit's user avatar
  • 1,184
7 votes
0 answers
2k views

Plug webpack-dev-server and hot-load React with Tomcat

I'm developing inside ecosystem that uses Tomcat server that servers all the files both java and javascript but the I run the javascript first through WebPack. Is there any way that I can use ...
ArniReynir's user avatar
6 votes
1 answer
11k views

Webpack-Dev-Server: Errors while compiling. Reload prevented. (Stack: React)

I use React with Webpack-Dev-Server for local Development. Every now and then I get this error: "react_devtools_backend.js:6 [WDS] Errors while compiling. Reload prevented." After the error occurs, ...
coasterrel's user avatar
6 votes
0 answers
2k views

React-Router returns 404 on child routes

I'm using react, react-router(v4), redux and webpack(-dev-server) to build an app. The Devserver and eveything works fine, including HMR and historyApiFallback. Means that when I enter http://...
gisderdube's user avatar
5 votes
0 answers
925 views

difference between webpack 4 Hot Module Replacement and react-hot-loader

Implementing Hot Module Repacement using webpack 4 example works perfectly, and my react component are rendering smoothly as well. However in the webpack documentation at the end, there is ...
rosnk's user avatar
  • 1,098
5 votes
2 answers
1k views

Webpack production build file paths are off

I'm running this command to try & generate a production webpack build: rimraf ./build/* && webpack -p --progress --config webpack.production.js However, when I open up the build/index....
Thomas's user avatar
  • 2,376
5 votes
0 answers
156 views

Can HotModuleReplacement run on different url? / instead of /webpack-dev-server/?

We are working a lot with react and hot module replacement and it is a pleasure to work with. But how can I start HotModuleReplacement in the bundle by default when someone accesses / or any other url?...
dmr's user avatar
  • 61
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
4 votes
0 answers
2k views

How to see create-react-app build logs (verbose)?

As part of create-react-build, I don't see any logs; it's a successful build as below, but I'd like to see build logs, outputs of what it build, packages compiled, if possible even some metrics (like ...
user14510150's user avatar
4 votes
0 answers
3k views

WebSocket connection to 'wss://localhost:3000/sockjs-node' failed:

I am working in a react application (Below Package.json) { "name": "seed", "version": "0.1.0", "private": true, "proxy": "http:/...
H.abidi's user avatar
  • 585
4 votes
2 answers
6k views

Plugin could not be registered at 'html-webpack-plugin-before-html-processing'. Hook was not found

this is the error: Plugin could not be registered at 'html-webpack-plugin-before-html-processing'. Hook was not found. BREAKING CHANGE: There need to exist a hook at 'this.hooks'. To create a ...
codelover's user avatar
  • 131
4 votes
0 answers
603 views

Default proxy setting for create-react-app doesn't handle file downloads

I am developing a web app using create-react-app. I have a back-end server setup, and connect to it by setting the proxy: ${my api host} in package.json. I have some api calls that are supposed to ...
Aningaaq's user avatar
  • 184
4 votes
0 answers
1k views

How to achieve hot-reloading for a chrome browser extension created using create-react-app?

I'm trying to create a react chrome browser extension using create-react-app. The browser_action popup is pointed to the index.html generated by the react app. The app is ejected from create-react-app ...
Samu's user avatar
  • 1,448

15 30 50 per page
1
2 3 4 5
22