Remove deprecated TypeScript baseUrl from frontend configs

オープン 初心者向け
#1,802 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
90/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
json, typescript
領域
build-system

調査の方向性

frontend/tsconfig.json と frontend/tsconfig.node.json を読み、既存の paths エントリが baseUrl なしでどのように解決されるかを確認します。両方の設定から非推奨のオプションを削除し、プロジェクトの型チェックを実行します。両方の設定でチェックが通り、@/* エイリアスが issue の説明どおりに引き続き解決されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug enhancement
Problem
  • TypeScript 6.0 deprecates the baseUrl compiler option. Editors using TypeScript 6.0 can flag "baseUrl": "." in frontend/tsconfig.json and frontend/tsconfig.node.json.
  • Both configs already map @/* to ./src/*, which TypeScript resolves relative to each config file when baseUrl is 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:

Screenshot 2026-12-01 at 11 45 28 AM

{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.

TypeScript 6.0 release notes

主要言語
Python
スター
322
フォーク
793
平均マージ
6日 10時間
マージ済み PR(30日)
20

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

AOSSIE-Org/PictoPy のほかの issue

AOSSIE-Org/PictoPy の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。