Questions tagged [webpack-dev-server]

a Node.js based server that supports live reloading and is used for development of webpack powered applications.

webpack-dev-server is a little Node.js Express server, which uses the webpack-dev-middleware to serve a webpack bundle. It also has a little runtime which is connected to the server via Socket.IO. The server emits information about the compilation state to the client, which reacts to those events by updating the bundle.

The server is used for development purpose only.

3256 questions
1
vote
0 answers

Webpack dev-server doesn't update

Good evning everyone, I need your help because after 4 hours I don't know what to do next. I have a problem that I want webpack dev server to automatically update when I edits the index or app.js file. The problem is that when I type npm start in…
Mati
  • 31
  • 4
1
vote
2 answers

How do you use Web Workers with Webpack 5?

I've been struggling to find the best way to use Web Workers while utilizing Webpack 5 and typescript. I try to follow the documentation, however, when I try to create a Web Worker, I am experiencing the following error: Uncaught DOMException:…
Quinn Zipse
  • 33
  • 1
  • 8
1
vote
1 answer

Refused to execute script from 'bundle.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled

I have an application with CRA with frontend and django backend. I use react-app-rewired to override webpack configuration on frontend so that to save output from webpack-dev-server for django to use. But I hit the issue as shown in below…
1
vote
0 answers

WDS Disconnected! sockjs-node refused, webpack-dev-middleware, expressjs

Some sockjs-node errors here I'm building a dev server using express... ADDED webpack-dev-middleware and webpack-hot-middleware for my React Here's my webpack.config.js: // require('dotenv').config() const ESLintPlugin =…
S B
  • 29
  • 1
  • 2
1
vote
0 answers

yarn install failed with Module parse failed: Unexpected character '@' (1:0)

I have the following configuration in my webpack.config.dev.js file const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin'); const path = require('path'); const webpackMerge = require('webpack-merge'); const MiniCssExtractPlugin…
1
vote
0 answers

Webpack: HMR Update check failed Error: Manifest Request to ..... timed out at XMLHttpRequest

So I have this dev environment through work, and sometimes i can go 20 minutes or so without restarting the server, but most of the time its every little change. this is the error message that pops up This is my webpack config var webpack =…
Jacob
  • 105
  • 1
  • 10
1
vote
0 answers

@babel/polyfill - is deprecated. Please, use required parts of `core-js` and `regenerator-runtime/runtime` separately

I am having an issue trying to 'run serve' with a React-App I am working on. I am getting a bunch of error messages but I think are mainly due to this one error - @babel/polyfill is deprecated. Please, use required parts of 'core-js' and…
1
vote
0 answers

How do I proxy requests for static files on my node server to my react development server?

I have a node.js server that serves the built static files of my create-react-app at /admin. The problem is that anytime I make a change to my react app I have to build the files over again to see the updates. Instead, I'd like to proxy requests for…
Kyle Truong
  • 2,545
  • 8
  • 34
  • 50
1
vote
0 answers

Serve a build version with webpack-dev-serve

I created a Typescript library for internal use and I want to configure my webpack-dev-serve to serve a build version of my library for users who will have to use it on local development. Because currently, I have to run first npm run build and then…
jrltt
  • 651
  • 10
  • 23
1
vote
1 answer

No autoreload page , webpack-dev-server

All work correctly , webpack-dev-server compiling after change in files, but browser folder no automatically reload Packages installed: "webpack": "^5.21.2", "webpack-cli": "^4.5.0", "webpack-dev-server": "^3.11.2" Thanks code in…
1
vote
1 answer

Webpack serve doesn't reload upon file changes

first time writing on Stack please don't be too harsh on me. I'm currently experiencing problems with webpack dev server (webpack serve NOT webpack-dev-server). Changes to my files are seen by Webpack (it shows compiling every time i save my files)…
Pietro
  • 11
  • 1
1
vote
0 answers

React: Webpack returns cannot / Get

I'm newbie with Webpack and I'm trying to serve a page from development but I've got the error Cannot / GET The configuration of my webpack.config.babel.js is: import webpack from "webpack"; import path from "path"; import HtmlWebpackPlugin from…
José Carlos
  • 2,850
  • 12
  • 59
  • 95
1
vote
2 answers

Webpack dev server serves wasm with wrong mime type

I'm using Vue 2 (but I think that my question isn't Vue-specific). The application uses a WebAssembly library of mine that I've installed with npm install [directory_name]. When I run npm run serve, it serves the .wasm file as text/html instead of…
1
vote
1 answer

webpack dev server not injecting css

when i review the stdout from running the script that calls webpack-dev-server IMO it is processing / emitting the scss | css OK. However the css is not included ( injected by dev server ) when you go to devtools and request "localhost: 8080" . Its…
Robert Rowntree
  • 6,230
  • 2
  • 24
  • 43
1
vote
1 answer

Ruby on rails 5.2 crashes after installing Webpacker

I'd really appreciate if someone could take a look into this issue I ran into after installing the Webpacker gem I'm using Rails 5.2.4.3 on ruby "2.5.1"and I'm trying to switch from Sprockets to Webpacker gem to manage my JS (Vue app), css and other…
1 2 3
99
100