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.

Typescript CanvasWidget compilation error

See original GitHub issue

I added the project with yarn and then get the following error message from ts:

Failed to compile.

node_modules/@projectstorm/react-canvas-core/dist/@types/src/CanvasEngine.d.ts
(12,5): Property 'canvasReady' of type '(() => void) | undefined' is not assignable to string index type '(event: BaseEvent) => any'.

I’m using typescript 3.7.5. Anyone a clue how to get around this?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
codie3611commented, Mar 5, 2020

There seems to be relative imports, which have a wrong level (2 times up, instead of 4 times up). Can hotfix this, but I prefer another more stable solution 😒

1reaction
codie3611commented, Mar 5, 2020

In case anyone wonders, editing tsconfig to contain "strictNullChecks": false worked partially. Now I get:

Failed to compile.

/home/lasso/programming/ts/lasso-hyperspace-client/node_modules/@projectstorm/react-diagrams-core/dist/@types/src/DiagramEngine.d.ts
(24,147): Cannot find module '../../react-canvas-core/dist/@types'.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Typescript project compile errors - node.js - Stack Overflow
When i try to run compile , but on compiling I see the errors that it cannot import express and body parser. But...
Read more >
Getting some compilation errors while compiling the TS files in ...
This error maybe need to cast the datatype in MetadataQuery.ts. You could refer to the following case :https://stackoverflow.com/questions/12686927/typescript- ...
Read more >
projectstorm/react-diagrams - Gitter
Hello everyone, I am trying to update my project from storm-reactdiagrams: 5.2.1. to @projectstorm/react-diagrams: 6.0.2, Can anyone help me by providing good ...
Read more >
homebrew-core - Homebrew Formulae
a2ps 4.14 Any‑to‑PostScript filter aacgain 1.8 AAC‑supporting version of mp3gain aalib 1.4rc5 Portable ASCII art graphics library aamath 0.3 Renders mathematical expressions as ASCII art
Read more >
Does WebAssembly compile to JavaScript? - Quora
This isn't really a problem for the WebAssembly developers to be concerned about. If untyped languages are ever efficiently compiled to native machine...
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