[英]Build failed because of no export of ParsedQs from express-serve-static-core
我遇到了[@types/express]-Type 'P' is not assignable to type 'ParamsArray'
的錯誤,通過安裝這些特定的包"@types/express": "^4.17.8", "@types/express-serve-static-core": "^4.17.13"
在下面拋出一個新錯誤。 我試圖將"@types/express-serve-static-core"
降級為"^4.17.5"
並安裝qs
,但這些都不起作用。
關於如何解決此錯誤的任何建議?
node_modules/@types/express-serve-static-core/index.d.ts:30:10 - error TS2305: Module '"../qs"' has no exported member 'ParsedQs'.
30 import { ParsedQs } from "qs";
在這里,我按照以下步驟找到了解決方案:
解決問題
謝謝。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.