Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

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

Open
pooyakn opened this issue Dec 10, 2020 · 4 comments
Open

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

pooyakn opened this issue Dec 10, 2020 · 4 comments

Comments

@pooyakn
Copy link

pooyakn commented Dec 10, 2020

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.

@sanok2000
Copy link

Yes can conform this, same issue.

@LuisAlejandro
Copy link
Contributor

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
Copy link

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

@fcjreed
Copy link
Contributor

fcjreed commented Jan 22, 2021

Pull the latest code. It should be fixed with PR #2624

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants