DeviaVir / zenbot

Zenbot is a command-line cryptocurrency trading bot using Node.js and MongoDB.
MIT License
8.23k stars 2.03k forks source link

Cannot run postinstall script. webpack unknown argument: -p #2549

Open pooyakn opened 3 years ago

pooyakn commented 3 years ago

KINDLY READ AND ACT ON THE BELOW INFORMATION BEFORE FILING YOUR ISSUE!

Please go to our Zenbot subreddit for questions, help and support:

https://www.reddit.com/r/zenbot/

If you open a GitHub issue, here is our policy:

  1. It must be a bug or a feature request.
  2. The form below must be filled out.

Here's why we have that policy: Zenbot developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals and rarely leads to bugfixes or useful enhancements. GitHub also notifies hundreds of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Reddit.


Remove everything above before creating your issue.

System information

Describe the problem

Describe the problem clearly here. Be sure to convey here why it's a bug in Zenbot or a feature request.

cannot run postinstall script. and I cannot see web gui.

bundling WebApp components
[webpack-cli] Unknown argument: -p

if I remove -p options:

➜  zenbot git:(unstable) ✗ webpack
[webpack-cli] Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
 - configuration.module.rules[0] has an unknown property 'query'. These properties are valid:
   object { compiler?, dependency?, descriptionData?, enforce?, exclude?, generator?, include?, issuer?, loader?, mimetype?, oneOf?, options?, parser?, realResource?, resolve?, resource?, resourceFragment?, resourceQuery?, rules?, sideEffects?, test?, type?, use? }
   -> A rule description with conditions and effects for modules.

what version?

➜  zenbot git:(unstable) ✗ webpack -v
webpack-cli 4.2.0
webpack 5.10.0

what is in /assets directory?

➜  zenbot git:(unstable) ✗ ls assets 
console.png       logo.png          logo.svg          zenbot_clean.png  zenbot_master.svg zenbot_square.png

Source code / Error logs

Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.

sanok2000 commented 3 years ago

Yes can conform this, same issue.

LuisAlejandro commented 3 years ago

Downgrade the webpack and webpack-cli (package.json) to these versions:

    "webpack": "^4.5.0",
    "webpack-cli": "^3.0.4",

They have been bumping the versions but not updating the codebase.

hliebscher commented 3 years ago

i fix it with >> shell.exec('npx webpack --progress') in post_install.js

fcjreed commented 3 years ago

Pull the latest code. It should be fixed with PR https://github.com/DeviaVir/zenbot/pull/2624