Skip to content

Fix getting-started.tsx type check #324

@EricRibeiro

Description

@EricRibeiro

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions