webpack-cli init command error

Created on 26 Feb 2018  路  14Comments  路  Source: webpack/webpack-cli

webpack-cli version

Latest tree. (2.0.9) Using symlink.

What is the current behavior?

Using webpack-cli init with mostly default recommended options.

screenshot_20180227_032131

After all dependencies are installed, I get this error:

image

Generated package.json

image

Steps to reproduce

mkdir test-dir && cd test-dir;
mkdir src && touch src/index.js;
webpack-cli init

What is the expected behavior?

webpack-cli init should run and create a webpack project with a config file.

Most helpful comment

webpack-cli v.2.0.10 should fix this. Publishing in a few hours

All 14 comments

Can confirm on Ubuntu 17.10 - webpack-cli fails at the last moment with the same error.

Makes webpack-cli useless to me :man_shrugging:

I'll have a look at this tomorrow, our fork isn't cooperating :(

Hi. I also experienced this problem. In my opinion, maybe, this change is the cause. https://github.com/webpack/webpack-cli/commit/0b4269c7eb25c61908cf2aa56b23eb017036dd28#diff-b9cfc7f2cdf78a7f4b91a753d10865a2

Since yoeman-environment refers to youeman-generator, I think that behavior has changed with this change.

@kawasako yeoman-environment doesn't have any peerDependency for yeoman-generator so there aren't any issues with namespacing.

@dhruvdutt your right. (I'm sorry) I studied further in detail, The real cause is that webpack-fork-yeoman-generator is published from master branch. There is no implementation of getArgument here. https://github.com/ev1stensberg/generator/blob/master/package.json#L2

@kawasako Yeah, I think that could be an issue as well.
Can you please try my PR #294 or branch locally and test if it's working? I don't think we need a separately published package if this one works.

@dhruvdutt I tested it. It seems to work well about webpack-cli init.

Awesome. :rocket:

I have the same problem

I have the same problem

Linux justerest-pc 4.9.0-6-amd64 #1 SMP Debian 4.9.82-1+deb9u2 (2018-02-21) x86_64 GNU/Linux

@ev1stensberg The init command is broken on our latest published version. 馃挃

Can you please test and review #294 or else we will have to find some other fix.

it fixs the problem but I just use v2.0.7 now

webpack-cli v.2.0.10 should fix this. Publishing in a few hours

2.0.10 is out with the fix. :fire:

@SolarLiner @kawasako @williamnerdy @justerest
Please test and let us know if you still have any issues. :100:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

r00nscapenab picture r00nscapenab  路  4Comments

aleksandrlat picture aleksandrlat  路  3Comments

fokusferit picture fokusferit  路  4Comments

fokusferit picture fokusferit  路  5Comments

logo749 picture logo749  路  4Comments