Zenbot: Cannot run postinstall script. webpack unknown argument: -p

Created on 10 Dec 2020  Â·  2Comments  Â·  Source: DeviaVir/zenbot

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

  • Have I written custom code (as opposed to using zenbot vanilla): No
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): MacOS Big Sur
  • Zenbot version (commit ref, or version): 4.1.0
  • Zenbot branch: unstable
  • NodeJS version: v12.18.3
  • Python version (when using a python script):
  • Exact command to reproduce (include everything): npm run postinstall
  • Did I make any changes to conf-sample.js?: just configured selector and telegram bot

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.

enhancement

Most helpful comment

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.

All 2 comments

Yes can conform this, same issue.

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nedievas picture nedievas  Â·  4Comments

sam-perez picture sam-perez  Â·  5Comments

dymex0 picture dymex0  Â·  3Comments

ituhin picture ituhin  Â·  3Comments

joeswann picture joeswann  Â·  4Comments