Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Building Error: error TS2420: Class 'RenderedCommon' incorrectly implements interface 'IRenderer'. #28

Closed
EternalConfession opened this issue Jun 11, 2020 · 4 comments

Comments

@EternalConfession
Copy link

I met the following error when run
yarn run build

node_modules/@jupyterlab/rendermime/lib/widgets.d.ts(7,31): error TS2420: Class 'RenderedCommon' incorrectly implements interface 'IRenderer'.
Types of property 'title' are incompatible.
Type 'Title' is not assignable to type 'Title'. Two different types with this name exist, but they are unrelated.
Types of property 'owner' are incompatible.
Type 'Widget' is not assignable to type 'Widget'. Two different types with this name exist, but they are unrelated.
Types of property 'layout' are incompatible.
Type 'Layout' is not assignable to type 'Layout'. Two different types with this name exist, but they are unrelated.
Property 'init' is protected but type 'Layout' is not a class derived from 'Layout'.
error Command failed with exit code 1.

@gjamesli2126
Copy link

Same issue.
Has it been solved?

@EternalConfession
Copy link
Author

Not yet and I gave up.
It seems that this porject is no longer being maintained.

@mhrvol
Copy link

mhrvol commented Jun 15, 2023

I came across similar issue, what might help is adding "skipLibCheck": true to the tsconfig.json's compilerOptions.

The issue is that @Lumino staff needs to be locked down for certain checks (instanceof + typing). Extension developers has little to none control over which version it will actually run with, as the application itself will allow only the versions it was shipped with.

Note that this might not be ideal solution if you use more libraries, not just lumino widgets.

@xiaohk
Copy link

xiaohk commented Jun 18, 2023

Same issue here

fresende added a commit to fresende/elyra-streamlit-extension that referenced this issue Jun 20, 2023
fresende added a commit to fresende/elyra-streamlit-extension that referenced this issue Jun 20, 2023
More details: jupyterlab/jupyterlab-monaco#28

Signed-off-by: Fellipe Resende <fellipe.barros.resende@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants