[Bug]: type check has errors on a clean install
bugtriage
### To Reproduce
1. checkout the repo
2. `pnpm install`
3. `pnpm type-check`
I got the following errors
```
1 import { t as t_dev_or_prod } from './i18n.js';
~~~~~~~~~~~
../../packages/ui/lib/components/error-display/ErrorDisplay.tsx:1:29 - error TS2307: Cannot find module '@/lib/compon
ents/error-display/ErrorHeader' or its corresponding type declarations.
1 import { ErrorHeader } from '@/lib/components/error-display/ErrorHeader';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../packages/ui/lib/components/error-display/ErrorDisplay.tsx:2:34 - error TS2307: Cannot find module '@/lib/compon
ents/error-display/ErrorResetButton' or its corresponding type declarations.
2 import { ErrorResetButton } from '@/lib/components/error-display/ErrorResetButton';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../packages/ui/lib/components/error-display/ErrorDisplay.tsx:3:37 - error TS2307: Cannot find module '@/lib/compon
ents/error-display/ErrorStackTraceList' or its corresponding type declarations.
3 import { ErrorStackTraceList } from '@/lib/components/error-display/ErrorStackTraceList';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../packages/ui/lib/components/ToggleButton.tsx:1:20 - error TS2307: Cannot find module '@/lib/utils' or its corres
ponding type declarations.
1 import { cn } from '@/lib/utils';
~~~~~~~~~~~~~
Found 5 errors in 3 files.
Errors Files
1 ../../packages/i18n/lib/index.ts:1
3 ../../packages/ui/lib/components/error-display/ErrorDisplay.tsx:1
1 ../../packages/ui/lib/components/ToggleButton.tsx:1
ELIFECYCLE Command failed with exit code 2.
```
### Expected Behavior
type check has no errors
### Screenshots
_No response_
### OS
macOS
### Browser
Chrome
### Node Version
22.18.0
### Other Necessary Packages Version
pnpm-10.11
### Additional Context
_No response_
0 条评论