Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • N node-http-proxy
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 482
    • Issues 482
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 102
    • Merge requests 102
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • http ... PARTY!
  • node-http-proxy
  • Issues
  • #1613
Closed
Open
Issue created Oct 08, 2022 by DNAScanner@DNAScanner

NodeJs giving me error when trying to start

Helo, When im trying to start my server by doing httpProxy.createProxyServer(), im just getting the error TypeError: httpProxy.createProxyServer is not a function I have the http-proxy-module installed (npm I http-proxy), so that probably is not the issues

http-proxy version: 1.18.1 nodejs version: v18.10.0

Code:

import * as http from "http";
import * as fs from "fs";
import * as path from "path";
import * as httpProxy from "http-proxy";

// Create a proxy server
const proxy = httpProxy.createProxyServer({
      target: "https://discord.gg"
}).listen(80);
Assignee
Assign to
Time tracking