question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

custom ui path not recognised

See original GitHub issue

Describe The Bug

Hi!

I’m working with the homebridge-eufy-security team and have recently redesigned the custom ui screen which utilises plugin-ui-utils. As mentioned here it should be possible to set a custom path to the ui through config.schema.json but for me this setting is ignored. It always falls back to the default ./homebridge-ui/public/index.html I looked briefly at the source and found that this setting is read in this repo rather then plugin-ui-utils, so I’ve opened an issue here.

An example branch can be found here

Let me know if the issue lies somewhere else.

Logs

[9.7.2022, 10:00:15] [Homebridge UI] [homebridge-eufy-security] ENOENT: no such file or directory, open '/usr/lib/node_modules/homebridge-eufy-security/homebridge-ui/public/index.html'

Config

{
  "pluginAlias": "EufySecurity",
  "pluginType": "platform",
  "singular": true,
  "customUi": true,
  "customUiPath": "./dist/homebridge-ui"
}

Homebridge UI Version

4.49.0

Homebridge Version

1.5.0

Node.js Version

16.13.0

Operating System

Ubuntu / Debian (or a variant)

Environment Info

  • Using Docker?
  • Using Hyper-V?
  • Using hb-service?

Raspberry Pi Model

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
oznucommented, Jul 9, 2022

Probably, but you’re looking at less than 2% of total Homebridge users who run on Windows natively.

Fixed in 4.49.1-test.1

0reactions
thierencommented, Jul 10, 2022

I forgot to mention this yesterday. You should probably move the Angular and other UI dependencies to devDependencies, as once the bundle is created you don’t need these at run time, and making your users install all these packages alongside your plugin will just slow things down.

https://github.com/thieren/Homebridge-eufy-plugin/blob/customUiPath/package.json#L37

Yeah you’re likely right. I just used the default dependencies generated by ng new when creating a new angular app. But will look into it and move the dependencies not needed. Thx!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Help! Installed custom activities are not found in UiPath's ...
I customized a program with the WPF User Control Library (. ... Help! Installed custom activities are not found in UiPath's activities card....
Read more >
Common Installation Errors - UiPath Documentation Portal
This page documents errors you may encounter when running the Studio MSI installer to perform an installation or an update. Error 1603 Cause...
Read more >
Apps Troubleshooting and FAQs - UiPath Documentation Portal
Possible cause. Check the name of the process and make sure that it does not contain an underscore ( _ ) character.
Read more >
Creating Activities With Code
An activity is the building block of a process automation. UiPath Studio comes with various built-in dedicated activities (such as PDF, mail, Excel,...
Read more >
Custom Package Folders and Network Paths
When installing the Robot via command line, if you do not provide this parameter the default folder is %userProfile%\.nuget\packages . It is possible...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found