I wonder what is causing below error message in the Dev tools console for a Node-RED application that uses the dashboard. My environment:
Raspberry PI
Node-RED version: v1.0.6
Node.js version: v12.16.3
Dashboard version 2.22.1 started at /ui
Apparently, there is nothing broken in the application as it runs flawlessly.
Ok, I know.. if it is not broke don´t fix it... but at least wanted to understand what is going on.
When I try to access such endpoint from the browser I get the confirmation that the resource is not available:
Cannot GET /ui/loading.html
There is also a warning in dev tools console that I assume it is not related (but anyway I would prefer to understand the root cause and get rid of it).
no, cleaning the browser cache does also not help. The only way to get rid of that message is by placing a loading.html in the dist folder or by changing the dashboard code
you are right, that preview image is indeed misleading. (I thought so when I saw the posted post, don't know how to get discord to not show these preview images :-))
About the other error, minimized javascript is hard to debug, since your dev tools will point you to a veeeery long single line js file, basically unreadable. For that so called source maps have been invented, which allow you to have the minimized code for the actual page but the unminified code for the debugger. Somehow that source map is not there, also nothing to worry about, as long as you don't want to debug angular-charts
Correct it's just a placeholder to load a loading screen from if you have a slow network / big dashboard / slow browser... A user requested that they wanted to customise one - so rather than build in a default one that we would overwrite on every upgrade it was simpler to just try to load it if it exists - and let it 404 if not, so the user could add whatever they want (or not).