Code Monkey home page Code Monkey logo

Comments (3)

lisp avatar lisp commented on May 28, 2024

i tried

npm install --save @types/react

which reported

but the subsequent build failed further

(base) berlintoo:cy-jupyterlab jamesanderson$ npm run build

> [email protected] build /Users/jamesanderson/jupyter/cy-jupyterlab
> tsc

node_modules/@jupyterlab/apputils/node_modules/@types/react/index.d.ts:2314:14 - error TS2300: Duplicate identifier 'LibraryManagedAttributes'.

2314         type LibraryManagedAttributes<C, P> = C extends { propTypes: infer T; defaultProps: infer D; }
                  ~~~~~~~~~~~~~~~~~~~~~~~~


node_modules/@jupyterlab/apputils/node_modules/@types/react/index.d.ts:2329:13 - error TS2717: Subsequent property declarations must have the same type.  Property 'a' must be of type 'DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>', but here has type 'DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>'.

2329             a: React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>;
                 ~

...

from cy-jupyterlab.

lisp avatar lisp commented on May 28, 2024

appears to have been rectified by

yarn remove @types/react-dom @types/react
yarn add @types/react-dom @types/react

from cy-jupyterlab.

lisp avatar lisp commented on May 28, 2024

in the end, there appears to be a conflict between the library and the lab version

"[email protected]" is not compatible with the current JupyterLab
Conflicting Dependencies:
JupyterLab              Extension      Package
>=1.0.1 <2.0.0          >=0.19.1 <0.20.0@jupyterlab/application
>=1.0.1 <2.0.0          >=0.19.1 <0.20.0@jupyterlab/apputils
>=3.0.0 <4.0.0          >=2.2.1 <3.0.0 @jupyterlab/coreutils

from cy-jupyterlab.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.