Skip to content
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

'webpack serve' command fails after dependency updates #2422

Closed
cemalettin-work opened this issue Feb 8, 2021 · 5 comments
Closed

'webpack serve' command fails after dependency updates #2422

cemalettin-work opened this issue Feb 8, 2021 · 5 comments
Labels

Comments

@cemalettin-work
Copy link

Describe the bug

After recent dependency updates, webpack cli gives me this error.

$ export SERVER_URL=${SERVER_URL:-'http://localhost:8080'} DEV_PORT=${DEV_PORT:-3000} ; NODE_ENV=development webpack serve --config config/webpack.client.dev.js
[webpack-cli] TypeError: cli.isValidationError is not a function
    at Command.<anonymous> (/home/user/Desktop/someFolder/client/node_modules/@webpack-cli/serve/lib/index.js:96:25)
error Command failed with exit code 2.

which points me to the this code snippet

            catch (error) {
                if (cli.isValidationError(error)) {
                    logger.error(error.message);
                }
                else {
                    logger.error(error);
                }
                process.exit(2);
            }

What is the current behavior?
Cannot find the reference for the isValidationError function
**TypeError: cli.isValidationError is not a function**

To Reproduce
Start the dev-server after recent updates

Expected behavior

Webpack dev-server should start successfully.

Screenshot of the dependency updates

dep_updates_of_webpack-cli

@anshumanv
Copy link
Member

Checking

@anshumanv
Copy link
Member

You need to upgrade your webpack-cli too

@cemalettin-work
Copy link
Author

will try thanks

@cemalettin-work
Copy link
Author

Yes, after webpack-cli@4.5.0, it works 🎉

@anshumanv
Copy link
Member

Great, closing

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

No branches or pull requests

2 participants