Skip to content

Commit 18d43f5

Browse files
committed
fix(typescript): add assertVersion to typescript since it relies on router, fixes #4291
1 parent 45399b1 commit 18d43f5

File tree

1 file changed

+3
-0
lines changed
  • packages/@vue/cli-plugin-typescript/generator

1 file changed

+3
-0
lines changed

packages/@vue/cli-plugin-typescript/generator/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ module.exports = (api, {
55
convertJsToTs,
66
allowJs
77
}, _, invoking) => {
8+
api.assertCliVersion('^4.0.0-alpha.4')
9+
api.assertCliServiceVersion('^4.0.0-alpha.4')
10+
811
if (typeof lintOn === 'string') {
912
lintOn = lintOn.split(',')
1013
}

0 commit comments

Comments
 (0)