Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install scrip missing #1

Open
Bastilms opened this issue Mar 12, 2021 · 6 comments
Open

Install scrip missing #1

Bastilms opened this issue Mar 12, 2021 · 6 comments

Comments

@Bastilms
Copy link

Bastilms commented Mar 12, 2021

Hey, it seems the installation scrip is missing inside your package.json. I'm getting the following error:
$ npm run install
npm ERR! missing script: install
npm ERR! A complete log of this run can be found in:
npm ERR! ~/.npm/_logs/2021-03-12T01_52_07_175Z-debug.log

The debug log shows the following:

2021-03-12T01_52_07_175Z-debug.log

@greghesp
Copy link

greghesp commented Apr 4, 2021

Install isn't a script.

Just do npm i and then once complete npm run start

@Bastilms
Copy link
Author

Bastilms commented Apr 5, 2021

Thank you. Then the Guide should be updated.
However, the panel still doesn't work for me. Do I miss something? Do I need to adjust some settings in order for me to work? I added the panel as described to my Home assistant instance and the server is also able to access the main.js file. Unfortunately, it doesn't show anything.

@greghesp
Copy link

greghesp commented Apr 5, 2021

I'm now at a similar position.

If you're using SSL on HA, then this won't load in dev mode as you can't load unsecured content. I've tried routing it through ngrok using a secure connection, but also still having issues.

@william57m How did you get this to load in dev mode?

@greghesp
Copy link

greghesp commented Apr 5, 2021

OK, finally got this working:
image

If you're developing, and using SSL, you'll need to use ngrok.

In webpack.config.js on line 5, you need to change const publicPath = isProd ? package.panelServingUrl : 'https://domain.ngrok.io/'; the dev url to be your https ngrok instance, otherwise it'll fail to load the resources to to XSS rejections.
On line 54, and 55 of the config file, comment out the host and port lines.

This will get it running. You'll have to then inspect and modify the components to suit your own HA instance

@Bastilms
Copy link
Author

Bastilms commented Apr 5, 2021

@greghesp Thank you for these tips. Unfortunately, I think I'm missing some core requirement. Does it show anything if I haven't adjusted any of the components? If so, it seems there is something broken on my side. The same also occurs when I upload the files to the server to avoid an issue with the connection.

@greghesp
Copy link

greghesp commented Apr 6, 2021

If you go into dev tools in Chrome, check the network tab to make sure it's loading correctly.

Then take a look at the console, change the target to the react panel and see what the errors are. I'm assuming you're just getting a blank page with no error popup?
If so, it's likely that one of the components is pointing to a entity that doesn't exist for you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants