-
-
Notifications
You must be signed in to change notification settings - Fork 131
Closed
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers
Description
Bug description
The getting-started.tsx file fails the type check ran by the pre-commit hook with the following message:
src/components/pages/home/section/getting-started.tsx:1:26 - error TS2307: Cannot find module '@site/src/components/molecules/animations/fade-into-view' or its corresponding type declarations.
1 import FadeIntoView from '@site/src/components/molecules/animations/fade-into-view';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/components/pages/home/section/getting-started.tsx:2:18 - error TS2307: Cannot find module '@docusaurus/Link' or its corresponding type declarations.
2 import Link from '@docusaurus/Link';
~~~~~~~~~~~~~~~~~~
Found 2 errors in the same file, starting at: src/components/pages/home/section/getting-started.tsx:1
Steps to reproduce
To reproduce it, run the following command:
npx tsc --skipLibCheck --noEmit --jsx react --esModuleInterop src/components/pages/home/section/getting-started.tsx
Alternatively, modify the file, stage it and run:
npx lefthook run pre-commit
Expected behavior
The type check should not fail.
Additional details
webbertakken and GabLeRoux
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers