You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a multi-task is registered, and this multi-task is invoked with a section which is an array while grunt is run with the --verbose
option, the build will terminate with the error message:
Warning: pattern.indexOf is not a function Use --force to continue.
The exception itself is thrown at line 45 in file.js, but it comes from task.normalizeMultiTaskFiles at line 168 in task.js
where src is now [1, 2, 3] when it processes the foo section, because line 110 in task.js interprets the foo section as if it was a file specification in a non-multi-task, and creates an object with src=[1, 2, 3] and dest='foo'.
If a multi-task is registered, and this multi-task is invoked with a section which is an array while grunt is run with the
--verbose
option, the build will terminate with the error message:
The exception itself is thrown at line 45 in file.js, but it comes from task.normalizeMultiTaskFiles at line 168 in task.js
where
src
is now[1, 2, 3]
when it processes thefoo
section, because line 110 in task.js interprets thefoo
section as if it was a file specification in a non-multi-task, and creates an object withsrc=[1, 2, 3]
anddest='foo'
.Consider the example from the documentation:
Given now also a
package.json
of:one can reproduce the error with:
The text was updated successfully, but these errors were encountered: