Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

105
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!