Cannot find type definition file for 'mime' 如何解决? #3739
Replies: 2 comments
-
我本地未出现,可以锁定到 @types/mime@1.3.5 试试 |
Beta Was this translation helpful? Give feedback.
-
你好,我直接根据官网文档安装并启动,也会出现和你一样的问题。 |
Beta Was this translation helpful? Give feedback.
-
Describe the problem(描述问题)
`
[ Midway ] Pre Process Force Exit.
error TS2688: Cannot find type definition file for 'mime'.
The file is in the program because:
Entry point for implicit type library 'mime'
Error! You can try adding the -V parameter for more information output.
TypeError: Cannot read properties of undefined (reading 'fileName')
at BuildPlugin.emit (/www/wwwroot/ddrun/server/node_modules/@midwayjs/cli-plugin-build/src/index.ts:201:66)
at CommandCore.execLifecycle (/www/wwwroot/ddrun/server/node_modules/@midwayjs/command-core/src/core.ts:216:11)
at CommandCore.invoke (/www/wwwroot/ddrun/server/node_modules/@midwayjs/command-core/src/core.ts:182:5)
at CLI.start (/www/wwwroot/ddrun/server/node_modules/@midwayjs/command-core/src/cli.ts:191:5)
`
Midway Versions(Midway 版本)
"@midwayjs/bootstrap": "^3.5.1",
"@midwayjs/bull": "3",
"@midwayjs/cli": "^1.3.21",
"@midwayjs/core": "^3.9.0",
"@midwayjs/decorator": "^3.9.0",
"@midwayjs/egg-ts-helper": "^1.0.1",
"@midwayjs/logger": "^3.2.0",
"@midwayjs/mock": "^3.5.1",
"@midwayjs/orm": "^3.1.1",
"@midwayjs/redis": "^3.5.1",
"@midwayjs/socketio": "3",
"@midwayjs/static-file": "3",
"@midwayjs/task": "^3.5.1",
"@midwayjs/upload": "^3.5.2",
"@midwayjs/validate": "^3.5.2",
"@midwayjs/web": "^3.5.1",
"@midwayjs/ws": "^3.5.1",
Beta Was this translation helpful? Give feedback.
All reactions