We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如下 mock 代码,vite@5,[email protected] 代码: export default [ { url: '/xx/xxx/xxxx?sss=1211', method: 'post', timeout: Math.floor(Math.random() * (1200 + 1)), response: () => { return { ret: 0, msg: '', total: 1, list: [
] }; }
} ] as MockMethod[]; 报错信息: node_modules/path-to-regexp/dist/index.js:114 throw new TypeError("Unexpected ".concat(nextType, " at ").concat(index, ", expected ").concat(type)); ^
TypeError: Unexpected MODIFIER at 31, expected END
The text was updated successfully, but these errors were encountered:
No branches or pull requests
如下 mock 代码,vite@5,[email protected]
代码:
export default [
{
url: '/xx/xxx/xxxx?sss=1211',
method: 'post',
timeout: Math.floor(Math.random() * (1200 + 1)),
response: () => {
return {
ret: 0,
msg: '',
total: 1,
list: [
}
] as MockMethod[];
报错信息:
node_modules/path-to-regexp/dist/index.js:114
throw new TypeError("Unexpected ".concat(nextType, " at ").concat(index, ", expected ").concat(type));
^
TypeError: Unexpected MODIFIER at 31, expected END
The text was updated successfully, but these errors were encountered: