Skip to content

Cannot find module 'react-sketch' or its corresponding type declarations #163

@peanutrhs

Description

@peanutrhs

I am receiving the following error when attempting to npm start from showcase folder.

ERROR in ./src/components/Canvas/index.tsx 2:0-43
Module not found: Error: Can't resolve 'react-sketch' in 'D:\Computer Science\Capstone\React-Sketch\react-sketch\packages\showcase\src\components\Canvas'
@ ./src/components/index.ts 3:0-40 3:0-40
@ ./src/App.tsx 6:0-65 20:36-42 22:36-48 24:36-47
@ ./src/index.tsx 1:0-28 14:31-34

ERROR in [at-loader] ./src/stores/config.ts:1:23
TS2307: Cannot find module 'react-sketch' or its corresponding type declarations.

ERROR in [at-loader] ./src/components/Canvas/index.tsx:2:36
TS2307: Cannot find module 'react-sketch' or its corresponding type declarations.

1 error has detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.

webpack 5.69.1 compiled with 3 errors in 2596 ms
i 「wdm」: Failed to compile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions