Open
Description
I'm sure that
- This issue is still present in the current beta version of this adapter
- There is no other (open) issue with the same topic (use the search!)
- This issue is not described in the adapter documentation / FAQ (read the docs!)
Script type
Typescript
The problem
Bei einem Fehler oder Warnung wird die Zeile des transpilierten Codes ausgegeben und nicht die aus der TS Datei, dass macht das finden von Fehlern etwas anspruchsvoller.
Script
let obj:any = {};
log(obj.state.val)
log:
javascript.2 09:10:42.455 error script.js.Test.Skript_type_1: script.js.Test.Skript_type_1:4
javascript.2 09:10:42.456 error at script.js.Test.Skript_type_1:4:15
Logausgabe im "großen" Log:
javascript.2 2025-01-17 09:10:42.456 error at Script.runInContext (node:vm:149:12)
javascript.2 2025-01-17 09:10:42.456 error at script.js.Test.Skript_type_1:4:15
javascript.2 2025-01-17 09:10:42.456 error TypeError: Cannot read properties of undefined (reading 'val')
javascript.2 2025-01-17 09:10:42.455 error ^
javascript.2 2025-01-17 09:10:42.455 error log(obj.state.val);
javascript.2 2025-01-17 09:10:42.455 error script.js.Test.Skript_type_1: script.js.Test.Skript_type_1:4
iobroker.current.log (in debug mode!)
No response
Version of nodejs
v20.18.1
Version of ioBroker js-controller
7.0.6
Version of adapter
v8.8.3