'icant figure out why my localhost is not running

ive been trying to start my localhost with the npm run dev command which is included in my scripts in package.json file.

it was was working fine before with node v17 npm v8.4, due to so many breaking changes i decided to uninstall v17 and installed v16 coupled with my npm v8.4. the project i was hoping to run by doing this is working fine but my old project is just compiling.

ive deleted the project files and cloned it from github again but the issue persists.

here is what am getting:

    $ npm run dev

> dev
> node index.js

 40% building 1/1 modules 0 activei 「wds」: Project is running at http://0.0.0.0:5000/
i 「wds」: webpack output is served from /
i 「wds」: Content not from webpack is served from C:\Users\user\celo-marketplace-dapp\dist        
i 「wds」: 404s will fallback to /index.html
 98% after emitting                                                               

 DONE  Compiled successfully in 33795ms                                                4:01:24 PM
i 「wdm」: Hash: fe279086527980f7b96f
Version: webpack 4.29.6
Time: 33795ms
Built at: 02/12/2022 4:01:24 PM    
     Asset      Size  Chunks             Chunk Names
index.html  5.04 KiB          [emitted]
   main.js  17.8 MiB    main  [emitted]  main
Entrypoint main = main.js
[0] multi (webpack)-dev-server/client?http://0.0.0.0 (webpack)/hot/dev-server.js ./src/main.js 52 bytes {main} [built]
[./contract/erc20.abi.json] 4.94 KiB {main} [built]
[./contract/marketplace.abi.json] 1.79 KiB {main} [built]
[./node_modules/@celo/contractkit/lib/index.js] 830 bytes {main} [built]
[./node_modules/bignumber.js/bignumber.js] 87.2 KiB {main} [built]
[./node_modules/web3/lib/index.js] 2.06 KiB {main} [built]
[./node_modules/webpack-dev-server/client/index.js?http://0.0.0.0] (webpack)-dev-server/client?http://0.0.0.0 4.29 KiB {main} [built]
[./node_modules/webpack-dev-server/client/overlay.js] (webpack)-dev-server/client/overlay.js 3.51 KiB {main} [built]
[./node_modules/webpack-dev-server/client/socket.js] (webpack)-dev-server/client/socket.js 1.53 KiB {main} [built]
[./node_modules/webpack-dev-server/client/utils/createSocketUrl.js] (webpack)-dev-server/client/utils/createSocketUrl.js 2.91 KiB {main} [built]
[./node_modules/webpack-dev-server/client/utils/log.js] (webpack)-dev-server/client/utils/log.js 
964 bytes {main} [built]
[./node_modules/webpack-dev-server/client/utils/reloadApp.js] (webpack)-dev-server/client/utils/reloadApp.js 1.59 KiB {main} [built]
[./node_modules/webpack-dev-server/client/utils/sendMessage.js] (webpack)-dev-server/client/utils/sendMessage.js 402 bytes {main} [built]
[./node_modules/webpack/hot/dev-server.js] (webpack)/hot/dev-server.js 1.61 KiB {main} [built]   
[./src/main.js] 6.06 KiB {main} [built]
    + 955 hidden modules
Child html-webpack-plugin for "index.html":
         Asset      Size  Chunks  Chunk Names
    index.html  1.41 MiB       0
    Entrypoint undefined = index.html
    [./node_modules/html-webpack-plugin/lib/loader.js!./public/index.html] 5.51 KiB {0} [built]  
    [./node_modules/lodash/lodash.js] 531 KiB {0} [built]
    [./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 472 bytes {0} [built] 
    [./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 497 bytes {0} [built] 
i 「wdm」: Compiled successfully.

please help



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source