Web client for HTML templates

So i solved the first problem, its now connecting to the web socket normally. the problem was that i put xml or html files in the playlist folder but its an unexpected token for the app.js and it says its not a valid JSON. So i removed the files again.

Now i dont get the error message anymore but im still stuck at just the loading screen and nothing is happening.

The console gives this error

Uncaught TypeError: clearData[0] is undefined
createTemplateList http://localhost:8081/script.js?n=1:453
socketMassage http://localhost:8081/script.js?n=1:245
connectToWebsocket http://localhost:8081/script.js?n=1:235
http://localhost:8081/script.js?n=1:220
.

No Errors anywhere else.

Best Regards and also thanks to @didikunz for the fast reply, the Server is run as administrator.

Edit: I also have files in the template folder so the web client should recieve them.

okay so after i deleted the [0] behind the clearData, it started up and im not stuck in the loading screen anymore. Still dont know if it was a mistake from my side.

Still thank you for the reply.

So next question now would be how to embed the templates into the Webclient, since i have nothing in the templates window in the webclient, even tho i have multiple html templates in the folder that i selected in config.json.

Best Regards

@hrasokat where did you delete the [0]?

I managed to get stuck here:

And in terminal window

auto reconnect in 5s
C:/casparcg-server-v2.3.1-lts-stable/template
Server running on 8080...
caspar server is not good
ns closed
0
todays log file created
1
websocket server started
Hello
{"service":"toserver","command":"getTemplates","layer":null,"titles":null,"id":null,"channel":null}
getTemplates
{"service":"toserver","command":"getPlaylists","layer":null,"titles":null,"id":null,"channel":null}
{"service":"toserver","command":"getChannels","layer":null,"titles":null,"id":null,"channel":null}
removed all files from web server templates folder
Caspar tamplates folder copied to web server