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

208
Vistas
Webpack Error when `yarn run build` ran in my docker build

This is the error that occurred upon running my build:

WARNING in configuration
#12 0.535 The 'mode' option has not been set, webpack will fallback to 'production' for this value.
#12 0.535 Set 'mode' option to 'development' or 'production' to enable defaults for each environment.
#12 0.535 You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/configuration/mode/
#12 0.535 
#12 0.535 ERROR in main
#12 0.535 Module not found: Error: Can't resolve './src' in '/src'
#12 0.535 resolve './src' in '/src'
#12 0.535   using description file: /src/package.json (relative path: .)
#12 0.535     Field 'browser' doesn't contain a valid alias configuration
#12 0.535     using description file: /src/package.json (relative path: ./src)
#12 0.535       no extension
#12 0.535         Field 'browser' doesn't contain a valid alias configuration
#12 0.535         /src/src doesn't exist
#12 0.535       .js
#12 0.535         Field 'browser' doesn't contain a valid alias configuration
#12 0.535         /src/src.js doesn't exist
#12 0.535       .json
#12 0.535         Field 'browser' doesn't contain a valid alias configuration
#12 0.535         /src/src.json doesn't exist
#12 0.535       .wasm
#12 0.535         Field 'browser' doesn't contain a valid alias configuration
#12 0.535         /src/src.wasm doesn't exist
#12 0.535       as directory
#12 0.535         /src/src doesn't exist


This is my Dockerfile:

FROM node:12.10

 
WORKDIR /src

COPY package.json package.json
COPY yarn.lock yarn.lock

#Note the dependency install
RUN apt-get update && \
 apt-get -y install libcairo2-dev \
 libpango1.0-dev \
 libjpeg-dev \
 libgif-dev \
 librsvg2-dev

RUN yarn install
RUN yarn run build

EXPOSE 3000

COPY . . 

CMD ["node", "./server"]

You can find a copy of my webpack.config.js here.

I'm not sure if my webpack configuration is correct or if the source of the error lies in my Dockerfile. I look forward to your insight. Any help is greatly appreciated, thank you.

about 4 years ago · Juan Pablo Isaza
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