We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20b6f4e commit 6649988Copy full SHA for 6649988
packages/@vue/cli-ui/src/graphql-api/connectors/tasks.js
@@ -252,7 +252,7 @@ async function run (id, context) {
252
const dedupedArgs = []
253
for (let i = args.length - 1; i >= 0; i--) {
254
const arg = args[i]
255
- if (arg.indexOf('--') === 0) {
+ if (typeof arg === 'string' && arg.indexOf('--') === 0) {
256
if (dedupedArgs.indexOf(arg) === -1) {
257
dedupedArgs.push(arg)
258
} else {
0 commit comments