Remove deprecated TypeScript baseUrl from frontend configs
维护者通常 3 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 新手友好度
- 90/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- json, typescript
- 领域
- build-system
调研方向
阅读 frontend/tsconfig.json 和 frontend/tsconfig.node.json,然后检查现有的 paths 条目在没有 baseUrl 时如何解析。从两个配置中移除已弃用的选项,并运行项目的类型检查;当两个配置都通过检查,且 @/* 别名仍按 issue 中的描述解析时,即为完成。
由索引模型根据 Issue 内容生成。
描述
Problem
- TypeScript 6.0 deprecates the
baseUrlcompiler option. Editors using TypeScript 6.0 can flag"baseUrl": "."infrontend/tsconfig.jsonandfrontend/tsconfig.node.json. - Both configs already map
@/*to./src/*, which TypeScript resolves relative to each config file whenbaseUrlis omitted.
Proposed Solution or Cleanup:
Remove "baseUrl": "." from both configs and keep the existing paths entries. This resolves the deprecation without requiring a TypeScript version bump.
Screenshots:
PictoPy Right Now:
{Throwing Warnings}
Problem Solution and Explaination:
-
Keeping baseUrl: "."( current ) — @/utils/dateUtils goes to frontend/src/utils/dateUtils.ts. TypeScript also treats frontend/ as an extra place to look for imports like utils/dateUtils without the @/.
-
Remove baseUrl( Proposed Cleanup ) — @/utils/dateUtils goes to the same file because paths already maps @/* to ./src/*. The extra lookup in frontend/ goes away.
PictoPy’s imports didn’t need that extra lookup, so removing it clears the deprecation without changing how the app works.
Verification
I tested the two-line removal locally with the project's TypeScript 5.1.6. Both configs passed type checking. Frontend lint, formatting, and all 502 Jest tests passed.
- 主要语言
- Python
- 星标
- 322
- 派生
- 793
- 平均合并
- 6 天 10 小时
- 30 天内合并 PR
- 20
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
AOSSIE-Org/PictoPy 的其他 Issue
-
BUG: XMP metadata export permanently overwrites file modification timestamp (mtime), destroying photo dates可能已有人在做 @swastiksharma45 于 1 天前认领。 未关闭bug enhancement
难度 2/5 1-3 小时 新手友好度 76/100
AOSSIE-Org/PictoPy#1788 · 6 条评论 ·
维护者通常 3 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 79/100
AOSSIE-Org/PictoPy#1786 · 1 条评论 ·
维护者通常 3 天内回复
-
BUG: Semantic search sees portrait phone photos sideways (SigLIP ignores EXIF orientation)可能已有人在做 @omkar-suryavanshi 于 3 天前认领。 未关闭bug enhancement
难度 2/5 1-3 小时 新手友好度 76/100
AOSSIE-Org/PictoPy#1780 · 5 条评论 ·
维护者通常 3 天内回复
-
BUG: Share password loses leading/trailing spaces so the password you set doesn't work可能已有人在做 @ManyaJain111 于 1 天前认领。 未关闭bug good first issue
难度 2/5 1-3 小时 新手友好度 88/100
AOSSIE-Org/PictoPy#1779 · 2 条评论 · 已指派 1 人 ·
维护者通常 3 天内回复
-
BUG: PROD: Face search shows "No Matches Found" for every empty result, even when AI tagging is off可能已有人在做 @Piyush0000 于 2 天前认领。 未关闭bug enhancement
难度 2/5 1-3 小时 新手友好度 68/100
AOSSIE-Org/PictoPy#1770 · 4 条评论 ·
维护者通常 3 天内回复
查看 AOSSIE-Org/PictoPy 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
hermes hooks doctor smoke test never checks the hook exit code — a crashing hook (exit=1) renders ✓ "ran clean" and "All shell hooks look healthy"可能已有人在做 @cestercian 今天认领。 未关闭comp/cli P2 type/bug
难度 2/5 1-3 小时 新手友好度 75/100
NousResearch/hermes-agent#162259 · 1 条评论 ·
维护者通常 1 天内回复
-
community-request
难度 2/5 1-3 小时 新手友好度 78/100
NVIDIA-NeMo/Run#727 ·
维护者通常 1 天内回复
-
bot-triaged module: higher order operators module: pickle module: pt2-dispatcher oncall: pt2 triaged
难度 2/5 1-3 小时 新手友好度 75/100
pytorch/pytorch#207247 · 1 条评论 ·
维护者通常 1 天内回复
-
backend: claude chore dependencies
难度 2/5 1-3 小时 新手友好度 72/100
briandconnelly/amicus#606 ·
维护者通常 1 天内回复