Skip to main content

Questions tagged [webpack-dev-middleware]

handles latest webpack output in memory for Express (node platform) web server (so it is an Express middleware)

webpack-dev-middleware
0 votes
2 answers
2k views

Angular, new project, npm audit high severity vulnerabilities

So, I start a fresh new angular project. npm i @angular/cli --global ng new whisList --no-standalone I use --no-standalone flag to have the NgModel file, because I started to learn from a tutorial ...
Szilveszter Kéki's user avatar
0 votes
0 answers
409 views

How to add proxy configuration in web.config file and remove from appsettings.json in .NET 6 with Angular 5?

How to Add proxy configuration inside web.config file by removeing proxy from appsettings.json file in .net6 with Angular 5? I tried to add proxy in web.config file by removing from appsetting.json ...
Vinayak Kumbhar's user avatar
0 votes
0 answers
800 views

Error: Conflict: Multiple chunks emit assets to the same filename app.js (chunks polyfills and main)

I'm trying to package a manually created polyfills.ts with webpack because apparently it's not automatically emitted. Before adding my custom polyfills.ts (just remove the one line in the webconfig ...
Dr4gon's user avatar
  • 421
0 votes
2 answers
2k views

Angular 15 sourceMap webpack-dev-middleware: unexpected token | in JSON at position 3

I updated angular from 9 to 15 and now it seems I have issues running ng s with source Map enabled. My Error: ✔ Browser application bundle generation complete. <e> [webpack-dev-middleware] ...
scy's user avatar
  • 199
1 vote
0 answers
69 views

Webpack-dev-middleware and webpack-hot-middleware configuration

I have some conceptual troubles with webpack-dev-middleware and webpack-hot-middleware I have SSR app (react + express), webpack (with clientside and serverside configs). Webpack configs: client....
SergioZhidkov's user avatar
0 votes
1 answer
753 views

Webpack5 prevent fallback packages from being resolved when config is required in application

In Webpack 5, polyfill of core node modules are removed, instead required packages are required to listed in resolve.fallback property. Below is resolve property of webpack.config.client.js file. ...
ringord's user avatar
  • 928
0 votes
1 answer
404 views

webpack-dev-middleware can't Hot Reload on route's path

I'm putting webpack-dev-middleware on my express route which points to /login with this: (async () => { const [ {default: webpack}, {default: webpackMW}, ...
asnaeb's user avatar
  • 725
0 votes
1 answer
850 views

Webpack: Cannot get index.html with express server middleware

I followed the official getting started instructions of webpack to setup a litte test project and config file. As they recommend, I use an express server with webpack middleware. The setup server.js: ...
michaelT's user avatar
  • 1,651
3 votes
0 answers
710 views

Why am I getting "Cannot find module..." Typescript error for ".vue" file on webpack-dev-server recompilation?

I've setup a small webpack project which creates a Vue app bundle which is included in a static HTML file where the app is injected. I want to have components written in Typescript so I've included ts-...
Marcin Dabkus's user avatar
2 votes
0 answers
911 views

webpack-dev-middleware: options has an unknown property 'logLevel'

I'm currently upgrading Webpack + related modules and am getting the following error. It's a bit confusing as we don't specify the mentioned config param. Any help would be appreciated. [webpack-cli] ...
thebiscuitgirl's user avatar
0 votes
2 answers
1k views

Webpack: Trigger a file watch recompile on an unchanged file

I'm developing a Webpack 5 plugin and I need to manually trigger a recompile on a watched file without modifying it (mainly to do some niche HMR stuff). I figure the easiest way is to convince the ...
Bierson's user avatar
  • 78
2 votes
0 answers
361 views

Webpack 5 build goes two times repeatidly after save

After upgrading webpack to version 5, it compiles twice at a time after making any changes and saving it which is increasing build time. I am using webpack-dev-middleware: "^4.1.0" and ...
hitendra's user avatar
  • 189
1 vote
1 answer
2k views

Webpack dev-server proxy to localhost

I am struggling with webpack dev server proxy. I am using webpack 5. The goal is to have webpack dev server with local Apache api (PHP/Laravel). Webpack dev server has this settings: devServer: { ...
Peter Matisko's user avatar
0 votes
1 answer
1k views

Browser will not Launch on npm start with webpack Related to [email protected] and webpack@^4.0.0 Peer Dependency Issue?

I am brand new to JavaScript. In an attempt to learn JavaScript, I cloned the webpack-starter project from GitHub (https://github.com/wbkd/webpack-starter). Then, I ran a npm install in the clone ...
Thor's user avatar
  • 311
3 votes
0 answers
565 views

how to use webpack-dev-middleware with typescript?

I'm trying to implement a simple backend app with express + webpack + babel + typescript, I've seen examples of webpack-dev-middleware where the start script is simply "node index.js", as I ...
Leonardo's user avatar

15 30 50 per page
1
2 3 4 5
7