Comments (3)
i tried
npm install --save @types/react
which reported
+ @types/[email protected]
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.
appears to have been rectified by
yarn remove @types/react-dom @types/react
yarn add @types/react-dom @types/react
from cy-jupyterlab.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cy-jupyterlab.