NEWS
Typescript compilation error global folder js adapter 6.0.0
-
Liebe Community,
Ich habe den Javascript-Adapter auf 6.0.0 und den Admin-Adapter auf 6.2.17 aktualisiert. Gehe aber davon aus, dass mein Problem mit dem Javascript-Adapter zusammenhängt. Nach dem Update kommt der Javascript-Adapter in eine Neustartschleife. Das Problem liegt scheinbar an der Kompilierung von TypeScript-Skripten die ich im global Ordner liegen habe. Sobald ich diese Skripte im Adapter deaktiviere läuft der Adapter wieder. Hier die Fehlermeldung aus dem Log:
2022-08-28 21:46:05.602 - info: admin.0 (17125) <== Disconnect system.user.admin from ::ffff:192.168.178.116 javascript 2022-08-28 21:46:07.426 - info: admin.0 (17125) ==> Connected system.user.admin from ::ffff:192.168.178.116 2022-08-28 21:46:11.740 - info: admin.0 (17125) <== Disconnect system.user.admin from ::ffff:192.168.178.116 javascript 2022-08-28 21:46:18.058 - info: host.raspberrypi "system.adapter.javascript.0" enabled 2022-08-28 21:46:18.350 - info: host.raspberrypi instance system.adapter.javascript.0 started with pid 24910 2022-08-28 21:46:21.840 - info: javascript.0 (24910) starting. Version 6.0.0 in /opt/iobroker/node_modules/iobroker.javascript, node: v12.22.12, js-controller: 4.0.23 2022-08-28 21:46:23.525 - info: javascript.0 (24910) requesting all states 2022-08-28 21:46:23.527 - info: javascript.0 (24910) requesting all objects 2022-08-28 21:46:25.026 - info: javascript.0 (24910) received all states 2022-08-28 21:46:25.126 - info: javascript.0 (24910) received all objects 2022-08-28 21:46:25.182 - info: javascript.0 (24910) script.js.global.global_logging: compiling TypeScript source... 2022-08-28 21:46:25.479 - error: javascript.0 (24910) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). 2022-08-28 21:46:25.479 - error: javascript.0 (24910) unhandled promise rejection: Debug Failure. Unhandled SyntaxKind: Unknown. 2022-08-28 21:46:25.480 - error: javascript.0 (24910) Error: Debug Failure. Unhandled SyntaxKind: Unknown. at pipelineEmitWithHintWorker (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:113075:22) at pipelineEmitWithHint (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112608:17) at pipelineEmitWithComments (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:116249:13) at pipelineEmit (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112548:13) at emit (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112521:13) at emitTypeAliasDeclaration (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:114412:13) at pipelineEmitWithHintWorker (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112795:32) at pipelineEmitWithHint (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112608:17) at pipelineEmitWithComments (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:116249:13) at pipelineEmit (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112548:13) at emit (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112521:13) at emitListItemWithParenthesizerRule (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:116742:9) at emitNodeListItems (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:115493:17) at emitNodeList (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:115411:17) at emitList (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:115376:13) at emitSourceFileWorker (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:115062:13) at emitBodyWithDetachedComments (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:116369:17) at emitSourceFile (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:114981:17) at pipelineEmitWithHintWorker (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112623:24) at pipelineEmitWithHint (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112608:17) at pipelineEmit (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112548:13) at print (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112484:13) at writeFile (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112468:13) at printFile (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112329:13) at Object.printNode (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112313:62) at transformScriptBeforeCompilation (/opt/iobroker/node_modules/iobroker.javascript/lib/typescriptTools.js:442:31) at Immediate.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/main.js:1033:67) at processImmediate (internal/timers.js:463:21) 2022-08-28 21:46:25.480 - error: javascript.0 (24910) Debug Failure. Unhandled SyntaxKind: Unknown. 2022-08-28 21:46:25.511 - info: javascript.0 (24910) terminating 2022-08-28 21:46:25.513 - warn: javascript.0 (24910) Terminated (UNCAUGHT_EXCEPTION): Without reason 2022-08-28 21:46:28.383 - error: host.raspberrypi Caught by controller[0]: DeprecationWarning: 'createNodeArray' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead. 2022-08-28 21:46:28.384 - error: host.raspberrypi Caught by controller[1]: DeprecationWarning: 'createModifier' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead. 2022-08-28 21:46:28.384 - error: host.raspberrypi Caught by controller[1]: DeprecationWarning: 'updateVariableStatement' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead. 2022-08-28 21:46:28.385 - error: host.raspberrypi Caught by controller[1]: DeprecationWarning: 'updateTypeAliasDeclaration' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead. 2022-08-28 21:46:28.385 - error: host.raspberrypi Caught by controller[1]: DeprecationWarning: 'updateFunctionDeclaration' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead. 2022-08-28 21:46:28.385 - error: host.raspberrypi Caught by controller[2]: DeprecationWarning: 'createNamedExports' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead. 2022-08-28 21:46:28.385 - error: host.raspberrypi Caught by controller[3]: DeprecationWarning: 'createExportDeclaration' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead. 2022-08-28 21:46:28.386 - error: host.raspberrypi Caught by controller[4]: DeprecationWarning: 'updateSourceFile' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead. 2022-08-28 21:46:28.386 - error: host.raspberrypi Caught by controller[5]: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason: 2022-08-28 21:46:28.386 - error: host.raspberrypi Caught by controller[6]: Error: Debug Failure. Unhandled SyntaxKind: Unknown. 2022-08-28 21:46:28.386 - error: host.raspberrypi Caught by controller[6]: at pipelineEmitWithHintWorker (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:113075:22) 2022-08-28 21:46:28.386 - error: host.raspberrypi Caught by controller[6]: at pipelineEmitWithHint (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112608:17) 2022-08-28 21:46:28.387 - error: host.raspberrypi Caught by controller[6]: at pipelineEmitWithComments (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:116249:13) 2022-08-28 21:46:28.387 - error: host.raspberrypi Caught by controller[6]: at pipelineEmit (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112548:13) 2022-08-28 21:46:28.387 - error: host.raspberrypi Caught by controller[6]: at emit (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112521:13) 2022-08-28 21:46:28.387 - error: host.raspberrypi Caught by controller[6]: at emitTypeAliasDeclaration (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:114412:13) 2022-08-28 21:46:28.387 - error: host.raspberrypi Caught by controller[6]: at pipelineEmitWithHintWorker (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112795:32) 2022-08-28 21:46:28.388 - error: host.raspberrypi Caught by controller[6]: at pipelineEmitWithHint (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112608:17) 2022-08-28 21:46:28.388 - error: host.raspberrypi Caught by controller[6]: at pipelineEmitWithComments (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:116249:13) 2022-08-28 21:46:28.388 - error: host.raspberrypi Caught by controller[6]: at pipelineEmit (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112548:13) 2022-08-28 21:46:28.388 - error: host.raspberrypi Caught by controller[6]: at emit (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112521:13) 2022-08-28 21:46:28.388 - error: host.raspberrypi Caught by controller[6]: at emitListItemWithParenthesizerRule (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:116742:9) 2022-08-28 21:46:28.388 - error: host.raspberrypi Caught by controller[6]: at emitNodeListItems (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:115493:17) 2022-08-28 21:46:28.389 - error: host.raspberrypi Caught by controller[6]: at emitNodeList (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:115411:17) 2022-08-28 21:46:28.389 - error: host.raspberrypi Caught by controller[6]: at emitList (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:115376:13) 2022-08-28 21:46:28.389 - error: host.raspberrypi Caught by controller[6]: at emitSourceFileWorker (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:115062:13) 2022-08-28 21:46:28.389 - error: host.raspberrypi Caught by controller[6]: at emitBodyWithDetachedComments (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:116369:17) 2022-08-28 21:46:28.389 - error: host.raspberrypi Caught by controller[6]: at emitSourceFile (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:114981:17) 2022-08-28 21:46:28.389 - error: host.raspberrypi Caught by controller[6]: at pipelineEmitWithHintWorker (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112623:24) 2022-08-28 21:46:28.390 - error: host.raspberrypi Caught by controller[6]: at pipelineEmitWithHint (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112608:17) 2022-08-28 21:46:28.390 - error: host.raspberrypi Caught by controller[6]: at pipelineEmit (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112548:13) 2022-08-28 21:46:28.390 - error: host.raspberrypi Caught by controller[6]: at print (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112484:13) 2022-08-28 21:46:28.390 - error: host.raspberrypi Caught by controller[6]: at writeFile (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112468:13) 2022-08-28 21:46:28.390 - error: host.raspberrypi Caught by controller[6]: at printFile (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112329:13) 2022-08-28 21:46:28.390 - error: host.raspberrypi Caught by controller[6]: at Object.printNode (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112313:62) 2022-08-28 21:46:28.391 - error: host.raspberrypi Caught by controller[6]: at transformScriptBeforeCompilation (/opt/iobroker/node_modules/iobroker.javascript/lib/typescriptTools.js:442:31) 2022-08-28 21:46:28.391 - error: host.raspberrypi Caught by controller[6]: at Immediate.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/main.js:1033:67) 2022-08-28 21:46:28.391 - error: host.raspberrypi Caught by controller[6]: at processImmediate (internal/timers.js:463:21) 2022-08-28 21:46:28.391 - error: host.raspberrypi instance system.adapter.javascript.0 terminated with code 6 (UNCAUGHT_EXCEPTION) 2022-08-28 21:46:28.392 - info: host.raspberrypi Restart adapter system.adapter.javascript.0 because enabled 2022-08-28 21:46:30.326 - info: host.raspberrypi "system.adapter.javascript.0" disabled 2022-08-28 21:47:01.782 - error: javascript.0 (25346) adapter disabled 2022-08-28 21:47:01.866 - warn: javascript.0 (25346) Terminated (NO_ADAPTER_CONFIG_FOUND): Without reason 2022-08-28 21:47:02.495 - error: host.raspberrypi instance system.adapter.javascript.0 terminated with code 3 (NO_ADAPTER_CONFIG_FOUND) 2022-08-28 21:47:02.500 - info: host.raspberrypi Do not restart adapter system.adapter.javascript.0 because disabled or deleted
Systemdata Bitte Ausfüllen Hardwaresystem: Pi4 Arbeitsspeicher: 8GB Festplattenart: SD-Karte Betriebssystem: Debian GNU/Linux 10 (buster) Node-Version: 12.22.12 Nodejs-Version: NPM-Version: 6.14.16 Installationsart: Skript Image genutzt: Ja Ort/Name der Imagedatei: zu lange her -
@erdymurphy sagte in Typescript compilation error global folder js adapter 6.0.0:
node: v12.22.12
Aktualisiere dein System , auf die empfohlene NodeJS 16
-
@glasfaser danke für die schnelle Antwort. Habe schon vermutet dass ein Node-Update die Lösung sein könnte. Wo kann ich denn in Zukunft solche Informationen (welche Node Version für welchen Adapter, etc. empfohlen wird) einsehen?
-
@erdymurphy sagte in Typescript compilation error global folder js adapter 6.0.0:
Wo kann ich denn in Zukunft solche Informationen (welche Node Version für welchen Adapter, etc. empfohlen wird) einsehen?
Hier im Forum unter
stand es mal
sonst:
https://forum.iobroker.net/category/2/announcementshttps://forum.iobroker.net/topic/55678/node-js-16-x-neue-empfehlung-für-iobroker
auch bei den Adapter / Github ist ein Vermerk
Beispiel
https://forum.iobroker.net/post/848205Bzw.
Dein Admin zeigt es in der Kachel an wenn eine NodeJS neu kommt!
-
Also das Update auf NodeJS 16.17.0 hat keine Besserung gebracht. Oder muss ich sonst noch etwas aktualisieren)
2022-08-28 22:59:00.300 - info: javascript.0 (31472) starting. Version 6.0.0 in /opt/iobroker/node_modules/iobroker.javascript, node: v16.17.0, js-controller: 4.0.23 2022-08-28 22:59:01.947 - info: javascript.0 (31472) requesting all states 2022-08-28 22:59:01.949 - info: javascript.0 (31472) requesting all objects 2022-08-28 22:59:03.325 - info: javascript.0 (31472) received all objects 2022-08-28 22:59:03.473 - info: javascript.0 (31472) received all states 2022-08-28 22:59:11.181 - info: javascript.0 (31472) script.js.global.global_logging: compiling TypeScript source... 2022-08-28 22:59:11.441 - error: javascript.0 (31472) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). 2022-08-28 22:59:11.442 - error: javascript.0 (31472) unhandled promise rejection: Debug Failure. Unhandled SyntaxKind: Unknown. 2022-08-28 22:59:11.443 - error: javascript.0 (31472) Error: Debug Failure. Unhandled SyntaxKind: Unknown. at pipelineEmitWithHintWorker (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:113075:22) at pipelineEmitWithHint (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112608:17) at pipelineEmitWithComments (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:116249:13) at pipelineEmit (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112548:13) at emit (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112521:13) at emitTypeAliasDeclaration (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:114412:13) at pipelineEmitWithHintWorker (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112795:32) at pipelineEmitWithHint (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112608:17) at pipelineEmitWithComments (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:116249:13) at pipelineEmit (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112548:13) at emit (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112521:13) at emitListItemWithParenthesizerRule (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:116742:9) at emitNodeListItems (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:115493:17) at emitNodeList (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:115411:17) at emitList (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:115376:13) at emitSourceFileWorker (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:115062:13) at emitBodyWithDetachedComments (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:116369:17) at emitSourceFile (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:114981:17) at pipelineEmitWithHintWorker (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112623:24) at pipelineEmitWithHint (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112608:17) at pipelineEmit (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112548:13) at print (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112484:13) at writeFile (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112468:13) at printFile (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112329:13) at Object.printNode (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112313:62) at transformScriptBeforeCompilation (/opt/iobroker/node_modules/iobroker.javascript/lib/typescriptTools.js:442:31) at Immediate.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/main.js:1033:67) at processImmediate (node:internal/timers:468:21) 2022-08-28 22:59:11.445 - error: javascript.0 (31472) Debug Failure. Unhandled SyntaxKind: Unknown. 2022-08-28 22:59:11.551 - info: javascript.0 (31472) terminating 2022-08-28 22:59:11.554 - warn: javascript.0 (31472) Terminated (UNCAUGHT_EXCEPTION): Without reason 2022-08-28 22:59:14.594 - error: host.raspberrypi Caught by controller[0]: DeprecationWarning: 'createNodeArray' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead. 2022-08-28 22:59:14.595 - error: host.raspberrypi Caught by controller[1]: DeprecationWarning: 'createModifier' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead. 2022-08-28 22:59:14.596 - error: host.raspberrypi Caught by controller[2]: DeprecationWarning: 'updateVariableStatement' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead. 2022-08-28 22:59:14.596 - error: host.raspberrypi Caught by controller[3]: DeprecationWarning: 'updateTypeAliasDeclaration' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead. 2022-08-28 22:59:14.596 - error: host.raspberrypi Caught by controller[4]: DeprecationWarning: 'updateFunctionDeclaration' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead. 2022-08-28 22:59:14.596 - error: host.raspberrypi Caught by controller[5]: DeprecationWarning: 'createNamedExports' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead. 2022-08-28 22:59:14.596 - error: host.raspberrypi Caught by controller[6]: DeprecationWarning: 'createExportDeclaration' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead. 2022-08-28 22:59:14.597 - error: host.raspberrypi Caught by controller[7]: DeprecationWarning: 'updateSourceFile' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead. 2022-08-28 22:59:14.597 - error: host.raspberrypi Caught by controller[8]: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason: 2022-08-28 22:59:14.597 - error: host.raspberrypi Caught by controller[9]: Error: Debug Failure. Unhandled SyntaxKind: Unknown. 2022-08-28 22:59:14.597 - error: host.raspberrypi Caught by controller[9]: at pipelineEmitWithHintWorker (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:113075:22) 2022-08-28 22:59:14.597 - error: host.raspberrypi Caught by controller[9]: at pipelineEmitWithHint (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112608:17) 2022-08-28 22:59:14.597 - error: host.raspberrypi Caught by controller[9]: at pipelineEmitWithComments (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:116249:13) 2022-08-28 22:59:14.598 - error: host.raspberrypi Caught by controller[9]: at pipelineEmit (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112548:13) 2022-08-28 22:59:14.598 - error: host.raspberrypi Caught by controller[9]: at emit (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112521:13) 2022-08-28 22:59:14.598 - error: host.raspberrypi Caught by controller[9]: at emitTypeAliasDeclaration (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:114412:13) 2022-08-28 22:59:14.598 - error: host.raspberrypi Caught by controller[9]: at pipelineEmitWithHintWorker (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112795:32) 2022-08-28 22:59:14.598 - error: host.raspberrypi Caught by controller[9]: at pipelineEmitWithHint (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112608:17) 2022-08-28 22:59:14.598 - error: host.raspberrypi Caught by controller[9]: at pipelineEmitWithComments (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:116249:13) 2022-08-28 22:59:14.599 - error: host.raspberrypi Caught by controller[9]: at pipelineEmit (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112548:13) 2022-08-28 22:59:14.599 - error: host.raspberrypi Caught by controller[9]: at emit (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112521:13) 2022-08-28 22:59:14.599 - error: host.raspberrypi Caught by controller[9]: at emitListItemWithParenthesizerRule (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:116742:9) 2022-08-28 22:59:14.599 - error: host.raspberrypi Caught by controller[9]: at emitNodeListItems (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:115493:17) 2022-08-28 22:59:14.599 - error: host.raspberrypi Caught by controller[9]: at emitNodeList (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:115411:17) 2022-08-28 22:59:14.600 - error: host.raspberrypi Caught by controller[9]: at emitList (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:115376:13) 2022-08-28 22:59:14.600 - error: host.raspberrypi Caught by controller[9]: at emitSourceFileWorker (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:115062:13) 2022-08-28 22:59:14.600 - error: host.raspberrypi Caught by controller[9]: at emitBodyWithDetachedComments (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:116369:17) 2022-08-28 22:59:14.600 - error: host.raspberrypi Caught by controller[9]: at emitSourceFile (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:114981:17) 2022-08-28 22:59:14.600 - error: host.raspberrypi Caught by controller[9]: at pipelineEmitWithHintWorker (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112623:24) 2022-08-28 22:59:14.601 - error: host.raspberrypi Caught by controller[9]: at pipelineEmitWithHint (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112608:17) 2022-08-28 22:59:14.601 - error: host.raspberrypi Caught by controller[9]: at pipelineEmit (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112548:13) 2022-08-28 22:59:14.601 - error: host.raspberrypi Caught by controller[9]: at print (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112484:13) 2022-08-28 22:59:14.601 - error: host.raspberrypi Caught by controller[9]: at writeFile (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112468:13) 2022-08-28 22:59:14.601 - error: host.raspberrypi Caught by controller[9]: at printFile (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112329:13) 2022-08-28 22:59:14.601 - error: host.raspberrypi Caught by controller[9]: at Object.printNode (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112313:62) 2022-08-28 22:59:14.602 - error: host.raspberrypi Caught by controller[9]: at transformScriptBeforeCompilation (/opt/iobroker/node_modules/iobroker.javascript/lib/typescriptTools.js:442:31) 2022-08-28 22:59:14.602 - error: host.raspberrypi Caught by controller[9]: at Immediate.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/main.js:1033:67) 2022-08-28 22:59:14.602 - error: host.raspberrypi Caught by controller[9]: at processImmediate (node:internal/timers:468:21) 2022-08-28 22:59:14.602 - error: host.raspberrypi instance system.adapter.javascript.0 terminated with code 6 (UNCAUGHT_EXCEPTION) 2022-08-28 22:59:14.602 - info: host.raspberrypi Restart adapter system.adapter.javascript.0 because enabled 2022-08-28 22:59:23.983 - info: host.raspberrypi "system.adapter.javascript.0" disabled 2022-08-28 22:59:27.453 - info: host.raspberrypi "system.adapter.zigbee.0" disabled
-
@erdymurphy sagte in Typescript compilation error global folder js adapter 6.0.0:
dass ein Node-Update die Lösung sein könnte.
Habe nur deinen alten NodeJS stand gesehen .
Bei Typescript muss dir jemand anderes helfen . -
@erdymurphy sagte in Typescript compilation error global folder js adapter 6.0.0:
Oder muss ich sonst noch etwas aktualisieren
Zeige mal :
cd /opt/iobroker npm ls | grep -E 'github.com|ERR' iobroker update -i sudo ln -s /usr/bin/node /usr/bin/nodejs uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
-
Könnte das passen !?
hier bei Github :
-
@glasfaser said in Typescript compilation error global folder js adapter 6.0.0:
ja das passt sehr gut... muss ich mir mal überlegen ob ich TS downgrade oder alles wieder in JS umwandele... Auf jeden Fall Danke für Deine Unterstützung!
-
-
@peet_b bist du da weitergekommen? habe auch das problem
-
@erdymurphy wie kann man ts downgraden?
-
@tklein Ich habe den Javascript-Adapter aus GitHub installiert. Dort wurde der Fix reingemerged. Damit klappts.
-
@mdietrich sagte in Typescript compilation error global folder js adapter 6.0.0:
aus GitHub
Nicht aus Github ziehen ...
wenn schon , dann auf die freigegebene Beta upgraden .
-
@glasfaser da zeigt er mir aber nix neueres als meine 6.0.0 an
Dann also mit einem Downgrade versuchen?
-
-
@thomas-braun da ist der 6.0.1 mit drin
Used repository: beta Adapter "accuweather" : 1.2.4 , installed 1.2.1 [Updatable] Adapter "admin" : 6.2.20 , installed 6.2.17 [Updatable] Adapter "alarm" : 3.1.1 , installed 3.1.1 Adapter "alexa2" : 3.19.7 , installed 3.11.2 [Updatable] Adapter "apple-find-me": 0.0.14 , installed 0.0.14 Adapter "backitup" : 2.4.12 , installed 2.4.10 [Updatable] Adapter "ble" : 0.13.0 , installed 0.13.0 Adapter "bmw" : 2.5.5 , installed 2.5.5 Adapter "bring" : 1.8.1 , installed 1.8.1 Adapter "broadlink2" : 2.1.5 , installed 2.1.5 Adapter "cloud" : 4.2.2 , installed 4.2.2 Adapter "coronavirus-statistics": 0.8.7, installed 0.8.7 Adapter "cul" : 2.0.2 , installed 2.0.2 Adapter "daswetter" : 3.1.4 , installed 3.1.2 [Updatable] Adapter "deconz" : 1.3.21 , installed 1.3.21 Adapter "device-reminder": 1.2.9 , installed 1.2.9 Adapter "devices" : 1.0.12 , installed 1.0.12 Adapter "discovery" : 3.0.5 , installed 3.0.5 Adapter "dwd" : 2.8.3 , installed 2.8.3 Adapter "echarts" : 1.0.12 , installed 1.0.12 Adapter "email" : 1.1.3 , installed 1.1.3 Adapter "fb-checkpresence": 1.1.19, installed 1.1.19 Adapter "feiertage" : 1.1.0 , installed 1.1.0 Adapter "fhem" : 1.6.3 , installed 1.6.3 Adapter "flot" : 1.11.0 , installed 1.11.0 Adapter "followthesun" : 0.3.9 , installed 0.3.9 Adapter "fritzbox" : 0.5.0 , installed 0.2.1 [Updatable] Adapter "geofency" : 1.2.2 , installed 1.1.1 [Updatable] Adapter "ham" : 5.1.0 , installed 5.0.2 [Updatable] Adapter "history" : 2.2.1 , installed 2.2.0 [Updatable] Adapter "homekit-controller": 0.5.1, installed 0.5.1 Adapter "ical" : 1.13.2 , installed 1.13.1 [Updatable] Adapter "influxdb" : 3.1.8 , installed 3.1.7 [Updatable] Adapter "info" : 1.9.19 , installed 1.9.19 Adapter "intex" : 0.0.7 , installed 0.0.7 Adapter "iot" : 1.11.9 , installed 1.11.8 [Updatable] Adapter "javascript" : 6.0.1 , installed 6.0.0 [Updatable] Controller "js-controller": 4.0.23 , installed 4.0.23 Adapter "linux-control": 1.1.5 , installed 1.1.3 [Updatable] Adapter "luftdaten" : 2.2.4 , installed 2.2.4 Adapter "mclighting" : 0.1.2 , installed 0.1.2 Adapter "meross" : 1.14.0 , installed 1.13.0 [Updatable] Adapter "milight" : 0.3.6 , installed 0.3.6 Adapter "milight-smart-light": 1.2.2, installed 1.2.2 Adapter "mqtt" : 4.0.7 , installed 4.0.7 Adapter "mysensors" : 3.0.0 , installed 3.0.0 Adapter "netatmo-crawler": 0.8.1 , installed 0.8.1 Adapter "nina" : 0.0.25 , installed 0.0.25 Adapter "openweathermap": 0.3.0 , installed 0.3.0 Adapter "parcel" : 0.0.20 , installed 0.0.20 Adapter "ping" : 1.5.3 , installed 1.5.3 Adapter "pollenflug" : 1.0.6 , installed 1.0.6 Adapter "pushover" : 3.0.3 , installed 3.0.2 [Updatable] Adapter "radar2" : 2.0.3 , installed 2.0.3 Adapter "rest-api" : 1.0.4 , installed 1.0.1 [Updatable] Adapter "rflink" : 2.1.6 , installed 2.1.6 Adapter "ring" : 3.1.1 , installed 3.0.4 [Updatable] Adapter "rpi2" : 1.3.2 , installed 1.3.2 Adapter "sayit" : 1.12.6 , installed 1.12.3 [Updatable] Adapter "scenes" : 2.3.9 , installed 2.3.9 Adapter "schoolfree" : 1.0.1 , installed 1.0.1 Adapter "shelly" : 6.0.0 , installed 6.0.0 Adapter "simple-api" : 2.7.1 , installed 2.7.0 [Updatable] Adapter "smartcontrol" : 1.2.1 , installed 1.2.1 Adapter "socketio" : 6.1.10 , installed 4.2.0 [Updatable] Adapter "sonoff" : 2.5.1 , installed 2.5.1 Adapter "sonos" : 2.2.3 , installed 2.2.3 Adapter "sourceanalytix": 0.4.14 , installed 0.4.12-1 [Updatable] Adapter "spotify-premium": 1.2.2 , installed 1.2.1 [Updatable] Adapter "sql" : 2.1.8 , installed 2.1.7 [Updatable] Adapter "systeminfo" : 0.3.1 , installed 0.3.1 Adapter "tankerkoenig" : 2.1.1 , installed 2.1.1 Adapter "telegram" : 1.14.1 , installed 1.14.1 Adapter "terminal" : 0.2.6 , installed 0.2.6 Adapter "text2command" : 2.2.2 , installed 2.2.2 Adapter "tr-064" : 4.2.16 , installed 4.2.16 Adapter "trashschedule": 2.0.3 , installed 2.0.3 Adapter "tuya" : 3.6.15 , installed 3.6.15 Adapter "vis" : 1.4.15 , installed 1.4.15 Adapter "vis-hqwidgets": 1.3.0 , installed 1.2.0 [Updatable] Adapter "vis-icontwo" : 0.89.0 , installed 0.89.0 Adapter "vis-inventwo" : 3.3.3 , installed 3.3.1 [Updatable] Adapter "vis-justgage" : 1.0.2 , installed 1.0.2 Adapter "vis-weather" : 2.5.6 , installed 2.5.5 [Updatable] Adapter "weatherunderground": 3.4.2, installed 3.4.2 Adapter "web" : 5.2.5 , installed 4.3.0 [Updatable] Adapter "whatsapp-cmb" : 0.2.3 , installed 0.2.2 [Updatable] Adapter "wled" : 0.6.7 , installed 0.6.7 Adapter "ws" : 2.1.5 , installed 1.3.0 [Updatable] Adapter "yahka" : 0.13.1 , installed 0.13.1 Adapter "zigbee" : 1.7.6 , installed 1.7.5 [Updatable]
-
@tklein Dann kannst du ja jetzt upgraden.
iobroker upgrade javascript
Wenn du generell volles Beta-Repo fährst, upgrade den Rest auch. Wenn nur der javascript auf Beta laufen soll stell das Repository wieder auf 'stable' zurück.
-
@thomas-braun said in Typescript compilation error global folder js adapter 6.0.0:
iobroker upgrade javascript
Danke für deine Hilfe. Ich update nur den einen und stelle dann wieder auf stable. Bin da einer von den vorsichtigen.
-
@thomas-braun update hat geklappt, aber adapter wird auch wieder rot.
javascript.0 11884 2022-09-02 10:32:29.376 error Debug Failure. Unhandled SyntaxKind: Unknown. javascript.0 11884 2022-09-02 10:32:29.376 error Error: Debug Failure. Unhandled SyntaxKind: Unknown. at pipelineEmitWithHintWorker (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:113075:22) at pipelineEmitWithHint (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112608:17) at pipelineEmitWithComments (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:116249:13) at pipelineEmit (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112548:13) at emit (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112521:13) at emitModuleDeclaration (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:114436:13) at pipelineEmitWithHintWorker (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112799:32) at pipelineEmitWithHint (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112608:17) at pipelineEmitWithComments (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:116249:13) at pipelineEmit (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112548:13) at emit (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112521:13) at emitListItemWithParenthesizerRule (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:116742:9) at emitNodeListItems (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:115493:17) at emitNodeList (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:115411:17) at emitList (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:115376:13) at emitSourceFileWorker (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:115062:13) at emitBodyWithDetachedComments (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:116369:17) at emitSourceFile (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:114981:17) at pipelineEmitWithHintWorker (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112623:24) at pipelineEmitWithHint (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112608:17) at pipelineEmit (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112548:13) at print (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112484:13) at writeFile (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112468:13) at printFile (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112329:13) at Object.printNode (/opt/iobroker/node_modules/iobroker.javascript/node_modules/typescript/lib/typescript.js:112313:62) at transformGlobalDeclarations (/opt/iobroker/node_modules/iobroker.javascript/lib/typescriptTools.js:496:31) at Immediate.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/main.js:1078:64) at processImmediate (node:internal/timers:468:21) javascript.0 11884 2022-09-02 10:32:29.376 error unhandled promise rejection: Debug Failure. Unhandled SyntaxKind: Unknown. javascript.0 11884 2022-09-02 10:32:29.375 error Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().