question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TS2307: Cannot find module '../../react-canvas-core/dist/@types'.

See original GitHub issue

Hi,

I am using the latest beta ("@projectstorm/react-diagrams": "^6.0.1-beta.4").

Im getting this error, but the application seems to be working fine.

TS2307: Cannot find module '../../react-canvas-core/dist/@types'.
ERROR in /Users/admin/node_modules/@projectstorm/react-diagrams-core/dist/@types/src/DiagramEngine.d.ts(25,147):
TS2307: Cannot find module '../../react-canvas-core/dist/@types'.
ERROR in /Users/admin/node_modules/@projectstorm/react-diagrams-core/dist/@types/src/DiagramEngine.d.ts(26,152):
TS2307: Cannot find module '../../react-canvas-core/dist/@types'.
ERROR in /Users/admin/node_modules/@projectstorm/react-diagrams-core/dist/@types/src/DiagramEngine.d.ts(27,147):
TS2307: Cannot find module '../../react-canvas-core/dist/@types'.
ERROR in /Users/admin/node_modules/@projectstorm/react-diagrams-core/dist/@types/src/entities/link-layer/LinkLayerModel.d.ts(14,59):
TS2307: Cannot find module '../../../../react-canvas-core/dist/@types'.
ERROR in /Users/admin/node_modules/@projectstorm/react-diagrams-core/dist/@types/src/entities/link/PointModel.d.ts(3,44):
TS2304: Cannot find name 'Omit'.
ERROR in /Users/admin/node_modules/@projectstorm/react-diagrams-core/dist/@types/src/entities/node-layer/NodeLayerModel.d.ts(11,59):
TS2307: Cannot find module '../../../../react-canvas-core/dist/@types'.```

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

4reactions
codegeargitcommented, Mar 23, 2020

I have the same problem.

0reactions
xavier7179commented, Dec 29, 2019

Looks like the path is somehow too short… ../../../../react-canvas-core/dist seems to be the right pointer: is it possible?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot find module 'react' or its corresponding type ...
When I change the file's extension to .js and .jsx from.ts and .tsx, the errors disappear. How should I solve this problem for...
Read more >
Cannot find module 'react' Error in TypeScript | bobbyhadz
To solve the "Cannot find module react or its corresponding type declarations" error, install the module and its type definitions by running the...
Read more >
Developers - TS2307: Cannot find module '../../react-canvas-core ...
Im getting this error, but the application seems to be working fine. ERROR in /Users/admin/node_modules/@projectstorm/react-diagrams-core/dist/@types/src/ ...
Read more >
Solved: Cannot find module react : npm install - YouTube
Your browser can't play this video. ... Solved: Cannot find module react : npm install ... 58K views 3 years ago React.
Read more >
npm start cannot find module react Code Example - Grepper
npm install --save react react-dom @types/react @types/react-dom.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found