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

109
Vistas
node project bundled with webpack is not working correctly

I have to node project that can be compiled: client.js and server.js I want to have to separate bundled file e.g. client.bundle.js and server.bundle.js This is my webpack config: const path = require('path');

module.exports = {
    target: 'node',
    entry: {
        server:'./server.js',
        client:'./client.js'
    },
    output: {
        path: path.resolve(__dirname, 'dist'),
        filename: '[name].bundle.js'
    },
};

server.bundle.js is working fine but client.bundle.js is logging multiple chars and finally throws an error. client.bundle.js result image

server.js has imported following module:

const FtpSrv = require('ftp-srv');

client.js has imported following module:

const ftp = require("basic-ftp")
const express = require("express");
const path = require('path')
const app = express();

const formidable = require('formidable');
const client = new ftp.Client()
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