Skip to content

fix issue with webpack-cli and argument in wrong order #6

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

Merged
merged 1 commit into from
Jan 17, 2021

Conversation

jonizen
Copy link
Contributor

@jonizen jonizen commented Jan 4, 2021

Hi!

Nice work, I tried it out and it gives me an error when running npm run start with the latest node and npm version (15.5.0) after looking at the error message (node:50249) UnhandledPromiseRejectionWarning: TypeError: Class constructor ServeCommand cannot be invoked without 'new' I looked at the webpack-cli repo and found Error when run npm start: Class constructor ServeCommand cannot be invoked without 'new': which have reported the error.

In short, the order needs to be: Syntax - webpack [command] [options] and the latest webpack needs to be 4.3.1.

Cheers!

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

Successfully merging this pull request may close these issues.

2 participants