blueprintjs/core问题,在第三个新环境中,运行原始代码而不使用react对象,运行原始代码,尽管它是干净的,但也会返回相同的问题。npm ERR! yarn run v1.21.1
npm ERR! $ jlpm run clean:lib
npm ERR! $ rimraf lib tsconfig.tsbuildinfo
npm ERR! Done in 3.19s
npm ERR! yarn run v1.21.1
npm ERR! $ jlpm run build:lib
npm ERR! tsc
npm ERR! ../node_modules/@blueprintjs/core/lib/esm/components/resize-sensor/resizeObserverTypes.d.ts(2,8): error TS2300: Duplicate identifier 'type'.
npm ERR! ../node_modules/@blueprintjs/core/lib/esm/components/resize-sensor/resizeObserverTypes.d.ts(2,13): error TS1005: '=' expected.
npm ERR! ../node_modules/@blueprintjs/core/lib/esm/components/resize-sensor/resizeObserverTypes.d.ts(2,15): error TS2304: Cannot find name 'ResizeObserverEntry'
npm ERR! ../node_modules/@blueprintjs/core/lib/esm/components/resize-sensor/resizeObserverTypes.d.ts(2,37): error TS2304L Cannot find name 'from'.
npm ERR! ../node_modules/@blueprintjs/core/lib/esm/components/resize-sensor/resizeObserverTypes.d.ts(2,42): error TS1005: ';' expected.
5 more lines注意-我没有使用来自blueprintjs/core的任何方法,但是它会自动安装npm来对我的知识进行JupyterLab扩展,所以不知道为什么会发生这种情况。我试着运行较早版本的NPM、@jupyterlab包的更新版本、一个特定的旧版本的@blueprintjs/core,但似乎没有任何东西起作用。请给我建议。
我运行的是@jupyterlab/application=^3.0.0,@jupyterlab/settingregistry=^3.0.0,@jupyerlab/notebook=^3.0.0和typescript=~3.7.5。
希望它能够正确安装npm,这样我就可以在本地构建和安装我的扩展了。
发布于 2022-04-01 16:50:35
问题是我的打字稿已经过时了。正在使用~3.7和此版本的blueprintjs/core需要3.8+
https://stackoverflow.com/questions/71681741
复制相似问题