Ask coding questions

← Back to all posts
what's missing?
odla (0)

Hi, i am very new here and rookie. Created a repl from a working github repo. After a $ npm start, a result should appear on localhost:8080

Voters
odla (0)
Comments
hotnewtop
Coder100 (16983)

webpack dev server works poorly with replit. You will have to choose something else.

Here's something you can do, change your package.json scripts from this:

  "scripts": {
    "dev": "webpack --mode development",
    "start": "webpack-dev-server --mode development --open",
    "build": "webpack --mode production"
  },

to this:

  "scripts": {
    "dev": "webpack --mode development",
    "start": "cd dist/web/ ; npx static-here",
    "build": "webpack --mode production"
  },
odla (0)

@Coder100 : thx....issue _ sh: 1: cd: can't cd to dist/web/____ after npm start