Configuring run button for a React Project imported from github and created using vite

**I have imported an existing React project from github. The project was created using Vite. when I click ‘run’ button, it gives the error shown in screenshot below. **

Repl link:

Screenshots, links, or other helpful context:

this is the content of my .replit file

hidden = [".config", "package-lock.json"]
run = "npm run dev"

regex = "Error \\[ERR_REQUIRE_ESM\\]"
message = "We see that you are using require(...) inside your code. We currently do not support this syntax. Please use 'import' instead when using external modules. ("

channel = "stable-22_11"

PATH = "$REPL_HOME/.config/npm/node_global/bin:$REPL_HOME/node_modules/.bin"
npm_config_prefix = "$REPL_HOME/.config/npm/node_global"

requiredFiles = [".replit", "replit.nix", ".config", "package.json", "package-lock.json"]

language = "nodejs"

  packageSearch = true
  guessImports = true
  enabledForHosting = false

language = "nodejs"

support = true

  transport = "localhost:0"
  startCommand = [ "dap-node" ]

    command = "initialize"
    type = "request"

      clientID = "replit"
      clientName = ""
      columnsStartAt1 = true
      linesStartAt1 = true
      locale = "en-us"
      pathFormat = "path"
      supportsInvalidatedEvent = true
      supportsProgressReporting = true
      supportsRunInTerminalRequest = true
      supportsVariablePaging = true
      supportsVariableType = true

    command = "launch"
    type = "request"
      args = []
      console = "externalTerminal"
      cwd = "."
      environment = []
      pauseForSourceMap = false
      program = "./index.js"
      request = "launch"
      sourceMaps = true
      stopOnEntry = false
      type = "pwa-node"


pattern = "**/{*.js,*.jsx,*.ts,*.tsx,*.json}"

start = "typescript-language-server --stdio"

run = ["sh", "-c", "npm run dev"]

Hello, @akillerdev!
Do you have a replit.nix file? If so, can you show the contents of it?
And can you please provide a link to your repl?

Yes here it is. and please revisit the topic again. I had shared the wrong .replit file and console screenshot earlier. now i have updated it.

Try installing vite, npm i vite, It may works!