Open tky753 opened 1 year ago
"vite": "^4.2.1" "vite-plugin-mock": "^3.0.0",
app |--mock |--a.ts |--package.json 依赖: "lib": "workspace:*" lib |--utils.ts |--package.json
pnpm monorepo项目,在 a.ts 中 import { xx } from 'lib/utils' 运行报错 [vite:mock] mock reload error TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for xxxxx/lib/utils.ts
import { xx } from 'lib/utils'
[vite:mock] mock reload error TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for xxxxx/lib/utils.ts
"vite": "^4.2.1" "vite-plugin-mock": "^3.0.0",
pnpm monorepo项目,在 a.ts 中
import { xx } from 'lib/utils'
运行报错[vite:mock] mock reload error TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for xxxxx/lib/utils.ts