Can't resolve 'vscode' in 'node_modules/@theia/python/node_modules/vscode-languageclient/lib

I have removed the @theia/language dependency, but still got the error: Can’t resolve ‘vscode’ in 'node_modules/@theia/python/node_modules/vscode-languageclient/lib.

The version i used is 1.10.0. Can anybody help?

My package.json:
{
“private”: true,
“name”: “hilens-studio”,
“version”: “1.5.0”,
“license”: “Apache-2.0”,
“theia”: {
“frontend”: {
“config”: {
“defaultTheme”: “light”,
“applicationName”: “HiLens Studio”,
“preferences”: {
“files.enableTrash”: false
}
}
}
},
“dependencies”: {
“hilens”: “1.1.0”,
@theia/core”: “1.10.0”,
@theia/cpp”: “latest”,
@theia/cpp-debug”: “latest”,
@theia/debug”: “1.10.0”,
@theia/editor”: “1.10.0”,
@theia/editor-preview”: “1.10.0”,
@theia/file-search”: “1.10.0”,
@theia/filesystem”: “1.10.0”,
@theia/git”: “1.10.0”,
@theia/json”: “latest”,
@theia/keymaps”: “1.10.0”,
@theia/markers”: “1.10.0”,
@theia/messages”: “1.10.0”,
@theia/metrics”: “1.10.0”,
@theia/mini-browser”: “1.10.0”,
@theia/monaco”: “1.10.0”,
@theia/navigator”: “1.10.0”,
@theia/outline-view”: “1.10.0”,
@theia/output”: “1.10.0”,
@theia/plantuml”: “latest”,
@theia/plugin”: “1.10.0”,
@theia/plugin-ext”: “1.10.0”,
@theia/plugin-ext-vscode”: “1.10.0”,
@theia/preferences”: “1.10.0”,
@theia/preview”: “1.10.0”,
@theia/process”: “1.10.0”,
@theia/scm”: “1.10.0”,
@theia/rust”: “latest”,
@theia/search-in-workspace”: “1.10.0”,
@theia/task”: “1.10.0”,
@theia/terminal”: “1.10.0”,
@theia/tslint”: “latest”,
@theia/typehierarchy”: “1.10.0”,
@theia/userstorage”: “1.10.0”,
@theia/variable-resolver”: “1.10.0”,
@theia/workspace”: “1.10.0”,
@theia/python”: “0.14.0”,
“python-debug”: “1.0.6”
},
“resolutions”: {
“vscode-json-languageserver”: “1.2.2”,
“vscode-languageserver-protocol”: “3.15.0-next.9”,
“vscode-languageserver-types”: “3.15.0-next.5”,
/vscode-json-languageserver//vscode-languageserver”: “6.0.0-next.1”
},
“devDependencies”: {
@theia/cli”: “latest”
},
“theiaPluginsDir”: “plugins”,
“theiaPlugins”: {

"vscode-builtin-configuration-editing": "https://cnnorth7-modelarts-sdk.obs.cn-north-7.ulanqab.huawei.com:443/theia/plugin/configuration-editing-1.39.1-prel.vsix",
"vscode-builtin-cpp": "https://cnnorth7-modelarts-sdk.obs.cn-north-7.ulanqab.huawei.com:443/theia/plugin/cpp-1.39.1-prel.vsix",
"vscode-builtin-css": "https://cnnorth7-modelarts-sdk.obs.cn-north-7.ulanqab.huawei.com:443/theia/plugin/css-1.39.1-prel.vsix",
"vscode-builtin-debug-auto-launch": "https://cnnorth7-modelarts-sdk.obs.cn-north-7.ulanqab.huawei.com:443/theia/plugin/debug-auto-launch-1.39.1-prel.vsix",
"vscode-builtin-html": "https://cnnorth7-modelarts-sdk.obs.cn-north-7.ulanqab.huawei.com:443/theia/plugin/html-1.39.1-prel.vsix",
"vscode-builtin-ini": "https://cnnorth7-modelarts-sdk.obs.cn-north-7.ulanqab.huawei.com:443/theia/plugin/ini-1.39.1-prel.vsix",
"vscode-builtin-javascript": "https://cnnorth7-modelarts-sdk.obs.cn-north-7.ulanqab.huawei.com:443/theia/plugin/javascript-1.39.1-prel.vsix",
"vscode-builtin-json": "https://cnnorth7-modelarts-sdk.obs.cn-north-7.ulanqab.huawei.com:443/theia/plugin/json-1.39.1-prel.vsix",
"vscode-builtin-less": "https://cnnorth7-modelarts-sdk.obs.cn-north-7.ulanqab.huawei.com:443/theia/plugin/less-1.39.1-prel.vsix",
"vscode-builtin-log": "https://cnnorth7-modelarts-sdk.obs.cn-north-7.ulanqab.huawei.com:443/theia/plugin/log-1.39.1-prel.vsix",
"vscode-builtin-make": "https://cnnorth7-modelarts-sdk.obs.cn-north-7.ulanqab.huawei.com:443/theia/plugin/make-1.39.1-prel.vsix",
"vscode-builtin-markdown": "https://cnnorth7-modelarts-sdk.obs.cn-north-7.ulanqab.huawei.com:443/theia/plugin/markdown-1.39.1-prel.vsix",
"vscode-builtin-merge-conflicts": "https://cnnorth7-modelarts-sdk.obs.cn-north-7.ulanqab.huawei.com:443/theia/plugin/merge-conflict-1.39.1-prel.vsix",
"vscode-builtin-npm": "https://cnnorth7-modelarts-sdk.obs.cn-north-7.ulanqab.huawei.com:443/theia/plugin/npm-1.39.1-prel.vsix",
"vscode-builtin-node-debug": "https://cnnorth7-modelarts-sdk.obs.cn-north-7.ulanqab.huawei.com:443/theia/plugin/node-debug-1.35.3.vsix",
"vscode-builtin-node-debug2": "https://cnnorth7-modelarts-sdk.obs.cn-north-7.ulanqab.huawei.com:443/theia/plugin/node-debug2-1.33.0.vsix",
"vscode-builtin-python": "https://cnnorth7-modelarts-sdk.obs.cn-north-7.ulanqab.huawei.com:443/theia/plugin/python-1.39.1-prel.vsix",
"vscode-builtin-shellscript": "https://cnnorth7-modelarts-sdk.obs.cn-north-7.ulanqab.huawei.com:443/theia/plugin/shellscript-1.39.1-prel.vsix",
"vscode-builtin-sql": "https://cnnorth7-modelarts-sdk.obs.cn-north-7.ulanqab.huawei.com:443/theia/plugin/sql-1.39.1-prel.vsix",
"vscode-builtin-theme-abyss": "https://cnnorth7-modelarts-sdk.obs.cn-north-7.ulanqab.huawei.com:443/theia/plugin/theme-abyss-1.39.1-prel.vsix",
"vscode-builtin-theme-defaults": "https://cnnorth7-modelarts-sdk.obs.cn-north-7.ulanqab.huawei.com:443/theia/plugin/theme-defaults-1.39.1-prel.vsix",
"vscode-builtin-theme-kimbie-dark": "https://cnnorth7-modelarts-sdk.obs.cn-north-7.ulanqab.huawei.com:443/theia/plugin/theme-kimbie-dark-1.39.1-prel.vsix",
"vscode-builtin-theme-monokai": "https://cnnorth7-modelarts-sdk.obs.cn-north-7.ulanqab.huawei.com:443/theia/plugin/theme-monokai-1.39.1-prel.vsix",
"vscode-builtin-theme-dimmed": "https://cnnorth7-modelarts-sdk.obs.cn-north-7.ulanqab.huawei.com:443/theia/plugin/theme-monokai-dimmed-1.39.1-prel.vsix",
"vscode-builtin-theme-quietlight": "https://cnnorth7-modelarts-sdk.obs.cn-north-7.ulanqab.huawei.com:443/theia/plugin/theme-quietlight-1.39.1-prel.vsix",
"vscode-builtin-theme-red": "https://cnnorth7-modelarts-sdk.obs.cn-north-7.ulanqab.huawei.com:443/theia/plugin/theme-red-1.39.1-prel.vsix",
"vscode-builtin-theme-solarized-dark": "https://cnnorth7-modelarts-sdk.obs.cn-north-7.ulanqab.huawei.com:443/theia/plugin/theme-solarized-dark-1.39.1-prel.vsix",
"vscode-builtin-theme-tomorrow-night-blue": "https://cnnorth7-modelarts-sdk.obs.cn-north-7.ulanqab.huawei.com:443/theia/plugin/theme-tomorrow-night-blue-1.39.1-prel.vsix",
"vscode-builtin-typescript": "https://cnnorth7-modelarts-sdk.obs.cn-north-7.ulanqab.huawei.com:443/theia/plugin/typescript-1.39.1-prel.vsix",
"vscode-builtin-typescript-language-features": "https://cnnorth7-modelarts-sdk.obs.cn-north-7.ulanqab.huawei.com:443/theia/plugin/typescript-language-features-1.39.1-prel.vsix",
"vscode-builtin-icon-theme-seti": "https://cnnorth7-modelarts-sdk.obs.cn-north-7.ulanqab.huawei.com:443/theia/plugin/vscode-theme-seti-1.39.1-prel.vsix",
"vscode-builtin-xml": "https://cnnorth7-modelarts-sdk.obs.cn-north-7.ulanqab.huawei.com:443/theia/plugin/xml-1.39.1-prel.vsix",
"vscode-builtin-yaml": "https://cnnorth7-modelarts-sdk.obs.cn-north-7.ulanqab.huawei.com:443/theia/plugin/yaml-1.39.1-prel.vsix",
"vscode-editorconfig": "https://cnnorth7-modelarts-sdk.obs.cn-north-7.ulanqab.huawei.com:443/theia/plugin/EditorConfig-0.14.4.vsix",
"vscode-python": "https://cnnorth7-modelarts-sdk.obs.cn-north-7.ulanqab.huawei.com:443/theia/plugin/ms-python-release.vsix"
  }
}

@PeimingMo1 you will need to remove all deprecated extensions first (related to languages), for instance:

  • @theia/python
  • @theia/json
  • @theia/tslint
  • @theia/cpp
  • @theia/rust

In addition, please ensure that @theia dependencies are not pulling different versions of extensions (ex: they do not pull a different version of @theia/core) else the application will fail to start.

You may check on npm if a version of an extension is still published, else it is likely that it has been deprecated. For example, theia-python was last published over a year ago at the latest version of 0.15.0.

Thanks @vince-fugnitto, i will try.