-
Notifications
You must be signed in to change notification settings - Fork 17
Description
(node:12832) UnhandledPromiseRejectionWarning: TypeError: Unexpected MODIFIER at 39, expected END
at mustConsume (D:\GitHub\dev-multiport-financial\node_modules@tarojs\plugin-mock\node_modules\path-to-regexp\src\index.ts:157:11)
at parse (D:\GitHub\dev-multiport-financial\node_modules@tarojs\plugin-mock\node_modules\path-to-regexp\src\index.ts:228:5)
at stringToRegexp (D:\GitHub\dev-multiport-financial\node_modules@tarojs\plugin-mock\node_modules\path-to-regexp\src\index.ts:495:25)
at Object.pathToRegexp (D:\GitHub\dev-multiport-financial\node_modules@tarojs\plugin-mock\node_modules\path-to-regexp\src\index.ts:617:10)
at D:\GitHub\dev-multiport-financial\node_modules@tarojs\plugin-mock\src\utils.ts:66:17
at Array.map ()
at parseMockApis (D:\GitHub\dev-multiport-financial\node_modules@tarojs\plugin-mock\src\utils.ts:51:35)
at getMockApis (D:\GitHub\dev-multiport-financial\node_modules@tarojs\plugin-mock\src\utils.ts:79:10)
at Object.createMockMiddleware (D:\GitHub\dev-multiport-financial\node_modules@tarojs\plugin-mock\src\utils.ts:89:18)
at Object.fn (D:\GitHub\dev-multiport-financial\node_modules@tarojs\plugin-mock\src\index.ts:29:11)
at Kernel. (D:\nvm\v14.17.5\node_modules@tarojs\cli\node_modules@tarojs\service\dist\Kernel.js:201:48)
at Generator.next ()
at D:\nvm\v14.17.5\node_modules@tarojs\cli\node_modules@tarojs\service\dist\Kernel.js:8:71
at new Promise ()
at __awaiter (D:\nvm\v14.17.5\node_modules@tarojs\cli\node_modules@tarojs\service\dist\Kernel.js:4:12)
at D:\nvm\v14.17.5\node_modules@tarojs\cli\node_modules@tarojs\service\dist\Kernel.js:200:33
(Use node --trace-warnings ...
to show where the warning was created)
(node:12832) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function w
ithout a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection,
use the CLI flag --unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:12832) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled wil
l terminate the Node.js process with a non-zero exit code.