theia: Error: Cannot apply @injectable decorator multiple times.

I don’t know if i am doing something wrong, but i receive this error on browser console

image

package.json

{
    "private": true,
    "dependencies": {
        "typescript": "latest",
        "@theia/callhierarchy": "^0.3.17",
        "@theia/core": "^0.3.17",
        "@theia/docker": "latest",
        "@theia/editor": "^0.3.17",
        "@theia/editorconfig": "^0.3.17",
        "@theia/extension-manager": "^0.3.17",
        "@theia/file-search": "^0.3.17",
        "@theia/filesystem": "^0.3.17",
        "@theia/git": "^0.3.17",
        "@theia/json": "^0.3.17",
        "@theia/keymaps": "^0.3.17",
        "@theia/languages": "^0.3.17",
        "@theia/markers": "^0.3.17",
        "@theia/merge-conflicts": "^0.3.17",
        "@theia/messages": "^0.3.17",
        "@theia/mini-browser": "^0.3.17",
        "@theia/monaco": "^0.3.17",
        "@theia/navigator": "^0.3.17",
        "@theia/outline-view": "^0.3.17",
        "@theia/output": "^0.3.17",
        "@theia/plugin": "^0.3.17",
        "@theia/plugin-ext": "^0.3.17",
        "@theia/plugin-ext-vscode": "^0.3.17",
        "@theia/preferences": "^0.3.17",
        "@theia/preview": "^0.3.17",
        "@theia/process": "^0.3.17",
        "@theia/search-in-workspace": "^0.3.17",
        "@theia/task": "^0.3.17",
        "@theia/terminal": "^0.3.17",
        "@theia/textmate-grammars": "^0.3.17",
        "@theia/tslint": "^0.3.17",
        "@theia/typescript": "^0.3.17",
        "@theia/userstorage": "^0.3.17",
        "@theia/variable-resolver": "^0.3.17",
        "@theia/workspace": "^0.3.17",
        "@coloradoide/authenticator": "0.0.22"
    },
    "devDependencies": {
        "@theia/cli": "^0.3.17"
    },
    "theia": {
        "target": "browser"
    }
}

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 19 (7 by maintainers)

Most upvoted comments

seeing same result as others with fresh install. used same package.json from docs.

looks like in yarn.lock, doubling lots of versions with 0.4.0-next.73d23a46 and 0.4.0-next.b0c99c12

not sure the best way to resolve, but hope it helps towards clearing this up.

This kind of errors happen if you have pulled different versions of the same theia extension (probably core?). You can check by looking for nested node_modules/@theia/<someextension>/node_modules/@theia. If you see them your config is not good. You need to make sure there is only one version.