Skip to content

fix: TypeScriptのtscエラーを修正#1646

Merged
massongit merged 2 commits intomainfrom
massongit-patch-1
Apr 4, 2026
Merged

fix: TypeScriptのtscエラーを修正#1646
massongit merged 2 commits intomainfrom
massongit-patch-1

Conversation

@massongit
Copy link
Copy Markdown
Member

@massongit massongit commented Apr 1, 2026

https://github.com/dev-hato/github-actions-cache-cleaner/actions/runs/23601878350/job/69518798367

Error: tsconfig.json(8,25): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.

https://github.com/dev-hato/github-actions-cache-cleaner/actions/runs/23847736111/job/69519204720?pr=1646

Error: scripts/update_readme/update_readme/get_inputs_markdown.ts(1,30): error TS2591: Cannot find name 'fs'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.

上記エラーを修正するため、以下を行います。

  • TS5107: moduleResolution: "node" (node10の別名) が非推奨のため "bundler" に変更
  • bundler moduleResolutionへの対応:
    • "types": ["node"] を追加し fs グローバル型を明示的に含める

@dev-hato-app dev-hato-app bot added this to task list Apr 1, 2026
@github-project-automation github-project-automation bot moved this to In Progress in task list Apr 1, 2026
@massongit massongit marked this pull request as ready for review April 1, 2026 12:13
@massongit massongit requested a review from Goryudyuma April 1, 2026 12:13
@massongit massongit changed the title TS5107: moduleResolution: "node" (node10の別名) が非推奨のため "bundler" に変更 fix: TypeScriptのtscエラーを修正 Apr 1, 2026
@massongit massongit merged commit eae362c into main Apr 4, 2026
31 checks passed
@massongit massongit deleted the massongit-patch-1 branch April 4, 2026 17:37
@github-project-automation github-project-automation bot moved this from In Progress to Done in task list Apr 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants