1👍
✅
I believe the error message comes from path-to-regexp
version 1.7.0, which is used by Vue Router:
https://github.com/pillarjs/path-to-regexp/blob/v1.7.0/index.js#L185
The problem is that an array is treated as multiple values but the parameter in your path does not support multiple values.
It is unclear what you are trying to achieve by passing an array to files
. The route path you’ve defined uses a ?
suffix for :files?
, which makes it optional but doesn’t allow for an array. Perhaps you meant :files*
or :files+
instead? Or maybe you just want to pass the first item in the array?
Source:stackexchange.com