tbolis / react-sketch

Sketch Tool for React-based applications, backed up by FabricJS
http://tbolis.github.io/showcase/react-sketch/
MIT License
678 stars 230 forks source link

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

Open peanutrhs opened 2 years ago

peanutrhs commented 2 years ago

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.

huy-lv commented 2 years ago

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

TimAnthonyAlexander commented 6 months ago

Were you able to resolve this? @peanutrhs