Thanks a lot liv-in-sky,
that's what I missed.
NEWS
Best posts made by Ethernet-Fellow
-
RE: Enable DOM objects for javascript and typescript [gelöst]
Latest posts made by Ethernet-Fellow
-
RE: Enable DOM objects for javascript and typescript [gelöst]
Thanks a lot liv-in-sky,
that's what I missed. -
RE: Enable DOM objects for javascript and typescript [gelöst]
Hi liv-in-sky,
I tried to make a table in VIS using HTML and typescript, but the typescript does not know DOM elements. -
RE: Enable DOM objects for javascript and typescript [gelöst]
Thanks Jey Cee,
I didn't find an editable table. So I tried to implement it by Typescript. -
Enable DOM objects for javascript and typescript [gelöst]
The simple type- and javascript statement
document.getElementById('xxx')
returns a syntax error: 'document' unknown.
On Google I found that the DOM objects are not enabled by default in typescript.
To enable it the typescript configuration file 'tsconfig.json' file must contain the line
"lib": ["DOM", "ES2017"],
to enable the DOM objects for typescript (and also for javascript).
I inserted that line in /opt/iobroker/node_modules/@iobroker/plugin-base/tsconfig.json
without success. On my Raspi there are about 20 more such file.So my question, does anyone know how to enable the DOM objects for type- and javascript in iobroker.
Thanks a lot