mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
07647f64ca4db70bc169126b70a658d29dce711f
The TypeScript 7 tsconfig migration in23d130band2984b2fset config/tsconfig.base.json to `module: node16` / `moduleResolution: node16` in place of the `commonjs` / `node` pair this fork inherited. That left `tsc -p config/tsconfig.build.json` — the gate hanzo.yml runs — failing with 398 errors, the bulk of them: static/app/actionCreators/modal.tsx(61,28): error TS2307: Cannot find module 'sentry/components/modals/emailVerificationModal' or its corresponding type declarations. Nothing is missing. emailVerificationModal.tsx sits next to its sibling modals and the `sentry/*` alias points at static/app. node16 grades each import separately: static imports in these files are read as CommonJS and resolve, but `import()` is always read as ESM, where a bare directory and an absent file extension are both errors. The route table and every lazily loaded modal are written with `import()`, which accounts for all 333 TS2307s and the 9 TS2835s. The same CJS/ESM split produced the 21 TS1479s and 21 TS2305s: node16 honors package `exports` and lands on different type entry points for marked, screenfull and rrweb. Webpack resolves this code, through `resolve.alias` in webpack.config.ts, and webpack has no such modes, so `moduleResolution: node` is what describes it. Restoring it takes the gate from 398 errors to 0. `moduleResolution: bundler` also describes webpack and would stay legible to TS7, but it reads `exports` the way node16 does and leaves 9 genuine type errors in the rrweb and emotion overlay types; that is a code change and is not attempted here. `downlevelIteration` stays dropped, it does nothing at target ES2022.
Users and logs provide clues. Sentry provides answers.
What's Sentry?
Sentry is a developer-first error tracking and performance monitoring platform that helps developers see what actually matters, solve quicker, and learn continuously about their applications.
Official Sentry SDKs
- JavaScript
- Electron
- React-Native
- Python
- Ruby
- PHP
- Laravel
- Go
- Rust
- Java/Kotlin
- Objective-C/Swift
- C#/F#
- C/C++
- Dart
- Perl
- Clojure
- Elixir
- Unity
- Unreal Engine
Resources
- Documentation
- Community (Bugs, feature requests, general questions)
- Discord
- Contributing
- Bug Tracker
- Code
- Transifex (Translate Sentry!)
Languages
Python
61.4%
TypeScript
37.4%
HTML
0.4%
Less
0.4%
JavaScript
0.2%
Other
0.1%



