-
-
Notifications
You must be signed in to change notification settings - Fork 616
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: @webpack-cli/[email protected] does not work #1127
Comments
Could you try the same with webpack-cli@beta? |
I had a similar issue on Node 10.17.0. It worked for me after I downgraded to 10.15.3 |
The following command was executed.
However, another error occurs and it does not work.
I am also using [email protected].
Thank you. |
I also tried I use
Thank you. |
Thx for the feedback! |
Hi @vertuxx thanks for reporting error.
webpack-cli create
webpack-cli create webpack-scaffold-pwa #example with custom scaffold |
Add |
@rishabh3112 if im use webpack-cli@beta create work but im have the following error when use npm run build
|
@dictateurfou
|
Same here. None of these ways work:
|
Well, this is a breaking change and not reflected in the docs. |
Thanks, i used |
Tested |
I'm sorry, but how come that on a clean project
I had to run Could something be wrong with my setup (but as I said, I have a clean project, and nothing in my environment seems unusual) since I don't see a lot of feedback here, and if not, is anybody going to do anything about it? Running into errors on a default setup doesn't seem good. |
Hi all, pls help.
Why? What i do wrong? I dont whant to downgrade to "@webpack-cli/[email protected]"! |
Hi @RVyrvin, Please open a new issue. Also see the previous replies.
Try |
So you mean the file is not generated? webpack 4 does not require a config by default. Try it without the |
Hi, ty for answer.
without --auto dont work.
And yes, now i need self create webpack.config.js.
El Sáb 18/01/2020, 12:39, Daniel Ruf <[email protected]> escribió:
… webpack.config.js
So you mean the file is not generated? webpack 4 does not require a config
by default. Try it without the --auto option.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1127?email_source=notifications&email_token=AKFTPSCBSZ63LW4RK6XJ7J3Q6LS57A5CNFSM4JPPAHI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJJWNGA#issuecomment-575891096>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKFTPSAONV3QQDNZIOEYUGTQ6LS57ANCNFSM4JPPAHIQ>
.
|
Please check the readme and the previous replies, |
Is it supposed to generate a webpack.config.js file? Here are the files generated using
git statusOn branch master package.json{ "name": "tryinit", "version": "1.0.0", "description": "My webpack project", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "build": "webpack", "start": "webpack-dev-server" }, "keywords": [], "author": "", "license": "ISC", "devDependencies": { "@webpack-cli/init": "^0.3.0", "babel-plugin-syntax-dynamic-import": "^6.18.0", "html-webpack-plugin": "^3.2.0", "terser-webpack-plugin": "^2.3.2", "webpack": "^4.41.5", "webpack-cli": "^3.3.10", "webpack-dev-server": "^3.10.1", "workbox-webpack-plugin": "^4.3.1" } } node_modules/.bin/webpack-cli init --init # produces error/home/aes/Sandbox/webpack/tryinit/node_modules/@webpack-cli/utils/npm-packages-exists.js:42 throw new TypeError(chalk_1.default.bold(`${scaffold} isn't a valid name.\n`) + ^ P.S. How to make use of the |
Please see the previous comments and the readme in the repository. By default webpack does not need a config anymore (0 config) unless you want to change the defaults. |
Hi.
So "node_modulos/.bin/webpack-cli init --auto" create struct of project,
and don't create "webpack.config.js".
I understand with this file when i run "npm run build/start", dont run
application on the browser?
Now, i need to create "webpack.config.js" by self or i can create him
automaticaly?
Sorry my english and ty for help me.
El dom., 19 ene. 2020 a las 10:00, Daniel Ruf (<[email protected]>)
escribió:
… TypeError: init isn't a valid name.
It should be prefixed with 'webpack-scaffold', but have different suffix.
Please see the previous comments and the readme in the repository. By
default webpack does not need a config anymore (0 config) unless you want
to change the defaults.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1127?email_source=notifications&email_token=AKFTPSHEL3Q5QT7WFGPQPZLQ6QJCRA5CNFSM4JPPAHI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJKMUAA#issuecomment-575982080>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKFTPSH2MXXR2NLVWW2Q273Q6QJCRANCNFSM4JPPAHIQ>
.
|
@RVyrvin you don't need to create a configuration file, |
@ematipico Should I make a PR for this to be reflected in docs? |
No we are back to init again. |
Uh, what? So you changed back? Is there additional information @snitin315? Also why the "thumbs down" reaction? A simple "no we need no PR because ..." is sufficient. |
There is no such additional info.
Just in support of my comment. |
@snitin315 But I am still getting the same error.
|
I am still getting the following error. throw new TypeError(chalk_1.default.bold(`${scaffold} isn't a valid name.\n`) +
^
TypeError: init isn't a valid name.
It should be prefixed with 'webpack-scaffold', but have different suffix.
at pkg.forEach (/home/phoenix/Desktop/temp2/node_modules/@webpack-cli/utils/npm-packages-exists.js:42:19)
at Array.forEach (<anonymous>)
at Object.npmPackagesExists [as default] (/home/phoenix/Desktop/temp2/node_modules/@webpack-cli/utils/npm-packages-exists.js:26:9)
at initializeInquirer (/home/phoenix/Desktop/temp2/node_modules/@webpack-cli/init/index.js:23:41)
at runWhenInstalled (/home/phoenix/Desktop/temp2/node_modules/webpack-cli/bin/utils/prompt-command.js:46:9)
at promptForInstallation (/home/phoenix/Desktop/temp2/node_modules/webpack-cli/bin/utils/prompt-command.js:140:10)
at /home/phoenix/Desktop/temp2/node_modules/webpack-cli/bin/cli.js:32:43
at Object.<anonymous> (/home/phoenix/Desktop/temp2/node_modules/webpack-cli/bin/cli.js:366:3)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) and output of System:
OS: Linux 4.19 Debian GNU/Linux 10 (buster) 10 (buster)
CPU: (4) x64 Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
Memory: 2.95 GB / 7.66 GB
Binaries:
Node: 10.15.2 - /usr/bin/node
Yarn: 1.22.4 - /usr/bin/yarn
npm: 5.8.0 - /usr/bin/npm
Browsers:
Chrome: 80.0.3987.149
Firefox: 68.6.0esr
npmPackages:
webpack-cli: ^3.3.11 => 3.3.11 |
You are using version 3, please try with beta once. |
Yes, it worked. But i have a question that because [email protected] version is being shipped through yarn or npm and also init is not working as expected with it. Can't we provide some documentation or a little help tips somewhere so that people facing this issue for first time don't get scared @snitin315 ? |
I'm not sure refer this comment. Also what changes in docs do you suggest? |
There is definitely a commit for this (reverted) change and a PR ;-) |
Finally, it works with
because, default install does not work 🙁 |
Hey if we need to |
/cc @webpack/cli-team Just clarify, have we test on this stuff? |
Let's close, I think the problem fixed, feel free to open a new issue if you faced with issue again |
Describe the bug
An error occurs when you run the
webpack-cli init
command.What is the current behavior?
To Reproduce
Expected behavior
The
webpack-cli init
command works correctly.Screenshots
N/A
Please paste the results of
webpack-cli info
here, and mention other relevant informationAdditional context
package.json
@webpack-cli/[email protected] is works fine.
Thank you.
The text was updated successfully, but these errors were encountered: