Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

215
Vistas
In windows webpack-dev-server with writeToDisk not working

Using webpack-dev-server through the nodejs API and it is fail to run in windows if we enable writeToDisk option and same has been working fine in Mac.

Tested in different node versions(12, 14, 16), but same issue in windows

Versions:

"webpack": "^5.38.1",
"webpack-dev-server": "^4.8.1",
"webpack-cli": "^4.9.1"

Webpack dev server config in nodeJS

const clientWebpack = customizeWebpack[0];
const clientCompiler = webpack(clientWebpack);
const portChoose = await choosePort(3000);
const devMiddlewareConfig = {
    port: portChoose, 
    host: '0.0.0.0',
    devMiddleware: {
        publicPath: '/',
        writeToDisk: true,
        stats: {
            colors: true,
            assets: true
        },
    },
    historyApiFallback: true
};

const server = new WebpackDevServer(devMiddlewareConfig, clientCompiler);
await server.start();

Error Trace:

build [=================== ] 93% [webpack-dev-middleware] Child "client": Unable to write "C:\test\build____\data:text" directory to disk: Error: ENOENT: no such file or directory, mkdir 'C:\test\build____\data:text' Build completed in 10.516s

[webpack-dev-middleware] [Error: ENOENT: no such file or directory, mkdir 'C:\test\build____\data:text'] { errno: -4058, code: 'ENOENT', syscall: 'mkdir', path: 'C:\test\build\\\\\data:text' }

about 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda