nicenote/docs/fea/ts/Q&A.md
2024-03-01 14:07:48 +08:00

25 lines
337 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
nav:
title: 前端
path: /fea
group:
title: 💊 TypeScript
order: 3
path: /ts
---
## Q&A
### 在 monorepo 架构下子包之间相互引用ts 总是会提示找不到对应的包
可以在根目录下的 tsconfig.json 如下配置:
```json
{
...
"paths": {
"@packages/*": ["packages/*/src/"]
}
}
```