react-sketch icon indicating copy to clipboard operation
react-sketch copied to clipboard

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

Open peanutrhs opened this issue 3 years ago • 2 comments

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.

peanutrhs avatar Feb 18 '22 07:02 peanutrhs

if you want to run demo, cd to packages/showcase and yarn start

huy-lv avatar Aug 09 '22 00:08 huy-lv

Were you able to resolve this? @peanutrhs

TimAnthonyAlexander avatar Feb 22 '24 09:02 TimAnthonyAlexander