Skip to content

Commit c2d1a2b

Browse files
committed
chore(README): require explicit vue-loader@legacy for Vue 2
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
1 parent f869d26 commit c2d1a2b

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

README.md

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,10 @@ module.exports = webpackConfig
3434

3535
## Note on Vue 2 support
3636

37-
This package supports both **Vue 2** and **Vue 3** by installing legacy `vue-loader` for Vue 2 in a `postinstall` script.
38-
39-
In Vue 2 it may result in different `vue-loader` version in the `package-lock.json` and `node_modules`.
40-
41-
### Troubleshooting in Vue 2 apps
42-
43-
In case of `npm error code ENOTEMPTY` - remove `node_modules` and try again:
44-
45-
```sh
46-
# In case of "npm error code ENOTEMPTY" in Vue 2
47-
rm -rf node_modules
48-
```
49-
50-
To avoid any errors and have explicitly specified `vue-loader` - install it as dependency:
37+
This package supports both **Vue 2** and **Vue 3**.
38+
While **Vue 3** is supported by default, **Vue 2** requires an explicit legacy `vue-loader` installation:
5139

5240
```sh
53-
# Install legacy vue-loader for Vue 2
5441
npm i -D vue-loader@legacy
5542
```
5643

0 commit comments

Comments
 (0)