-
Hi, running node-red Version: 2.1.6-2 from Debian packages (Raspberry Pi), The VueJS + bootstrap-vue basic example does not run. On the Firefox developer console I get a MIME-Type conflict/mismatch error, saying that /uibuilder/vendor/vue/dist/vue.min.js is delivered with a "text/html" MIME-Type instead of the correct "text/javascript" MIME Type. If I am correct, this is due to the configuration of the Express web server, where in order to get a correct MIME type, those static files should be served from a folder configured using the "express.static('public')" function. However, I could not find out where in Node-Red or in uibuilder the static resources folders (for vue.min.js etc.) are configured. I have not yet updated Node Red to the latest non-distribution version, however, please let me know if it is of any use here. Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
OK, I now uninstalled the Raspberry Pi packaged version of node-red and installed node-red v.3.0.2 via npm. However, if the VueJS + bootstrap-vue template now requires a newer node-red version, it might be worth updating the minimum required version in the release notes in README.md or in the "Using VueJS" section of the same d/nodes/libs/web.js Edit: I guess there is something wrong with the specific node or Express version that comes with the Raspberry Pi OS debian packages, not sure if it is worth looking futher into this.. |
Beta Was this translation helpful? Give feedback.
OK,
I now uninstalled the Raspberry Pi packaged version of node-red and installed node-red v.3.0.2 via npm.
The VueJS + bootstrap-vue template now runs without an issue so far.
However, if the VueJS + bootstrap-vue template now requires a newer node-red version, it might be worth updating the minimum required version in the release notes in README.md or in the "Using VueJS" section of the same d/nodes/libs/web.js
ocument.
Edit:
Just now, I also found the Express server and Express router setup in file /nodes/libs/web.js, see function serveVendorPackages().
From there, it seems that there is no error.
I guess there is something wrong with the specific node or Express version that comes wit…