I have success to build run Web server and mqtt-gateway-master on VM bot and can control my raspberry pi. These day I’m trying to turn the Web App to 5.1.0. I can done everything in my VM box, but when I try to use the Web APP I got this:
But looking in the command window of mqtt broker, the Web app has success connect to the broker.
At first I think this may cause by my firewall setting. I change the default rules of my VM to ACCEPT and add exception of IP to AVG on my host computer. It doesn’t solve the problem. Using curl command in my host computer to GET the /webpack/bundle.js it stop at chunck 12, but in the VM it get got about more than 900.
Also find that some people solve the problem about dynamic page by upgrade the webpack version. I use the yarn to upgrade it. It still not slove.
Using the google chrome developer tools I think the problem is about the localhost.
Below is in my host:
@RickCarlino Thanks for replying. Yes both of the MQTT_HOST and API_HOST is using my ip on VM. I have also use that IP to run an simple express website to make sure it is fine. Today I have try rebuild the database and rebuild with npm rebuild node-sass --force. Still the same situation. But when I use the rake api:upgrade I got rake aborted(Picture below). Does this mean I didn’t correct install something?
@mophy85 When I paste your config into my text editor, I see that you are using “ and ” as quotation marks. This usually the result of editing files in MS Word or Open Office. It can cause issues. For best results, I recommend using a text editor rather than a word processor. VS Code is my personal favorite.