I wanted to test something I saw in the latest unreleased version but get a ‘Failed to start the frontend application’ error.
‘yo theia-extension’ to generate new ‘Hello World’ extension
Change all dependencies in browser-app package.json from ‘latest’ to ‘next’
Rebuild and launch in browser
Error: Cannot apply @injectable decorator multiple times.
index.js:66 Error: Cannot apply @injectable decorator multiple times.
at injectable.ts:8
at DecorateConstructor (Reflect.js:541)
at Reflect.decorate (Reflect.js:130)
at _decorate (decorator_utils.ts:67)
at Object.decorate (decorator_utils.ts:89)
at Object.../TestHelloWorld/node_modules/@theia/core/lib/browser/widgets/widget.js (widget.ts:27)
at __webpack_require__ (bootstrap:19)
at Object.../TestHelloWorld/node_modules/@theia/core/lib/browser/widgets/index.js (index.ts:17)
at __webpack_require__ (bootstrap:19)
at Object.../TestHelloWorld/node_modules/@theia/core/lib/browser/dialogs.js (dialogs.ts:20)
This happens when multiple @theia/core dependencies with different versions are installed under the node_modules. Wipe node_modules and rerun yarn. It should work.
Hi, I’ve tried removing yarn.lock, node_modules and other directories, but using ‘next’ I can only see preferences if I use electron and add the dependency to @theia/external-terminal.
@jweb it worked for me when using the standard hello-world example, but when attempting to use a minimal set of extensions the preferences did not display: