From 55bc7d4b1aaa6b03c9fe4dd494c090a007ca5842 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Wed, 9 Jun 2021 13:07:28 +0800 Subject: [PATCH] docs: update migration guide [skip ci] --- docs/migrations/migrate-from-v4.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/migrations/migrate-from-v4.md b/docs/migrations/migrate-from-v4.md index 68aeb3cfbb..837a125c74 100644 --- a/docs/migrations/migrate-from-v4.md +++ b/docs/migrations/migrate-from-v4.md @@ -7,9 +7,9 @@ sidebar: auto First, install the latest Vue CLI globally: ```sh -npm install -g @vue/cli +npm install -g @vue/cli@next # OR -yarn global add @vue/cli +yarn global add @vue/cli@next ``` ## Upgrade All Plugins at Once @@ -17,13 +17,17 @@ yarn global add @vue/cli In your existing projects, run: ```sh -vue upgrade +vue upgrade --next ``` And then follow the command line instructions. See the following section for detailed breaking changes introduced in each package. +::: tip Note +If you see errors like `setup compilation vue-loader-plugin(node:44156) UnhandledPromiseRejectionWarning: TypeError: The 'compilation' argument must be an instance of Compilation` after upgrading, please remove the lockfile (`yarn.lock` or `package-lock.json`) and `node_modules` in the project and reinstall all the dependencies. +::: + ------ ## One-By-One Manual Migration