Describe Your Problem:
I recently got back to continuing development of a Homebridge plugin on which I got started 3 years ago.
My plugin doesn't build anymore, npm run build gives all sorts of compilation errors in node modules that I have never heard of. They are all dependencies of some mode that I am using (I think in this case it is @abandonware/noble, but this isn't important).
The problem is that my dependencies in tsconfig.json are frozen in time from when I forked this repo.
But the dependencies in package.json (and not only in my package.json but also in those of my dependencies) are all of the "^version" form.
So somewhere in the update between @types/w3c-web-usb from 1.0.6 to 1.0.10 something broke in my tsconfig.json.
When I finally thought of looking at what had changed in this repo (homebridge-plugin-template) it was clear what I had to do. But even finding this repo needed some manual inspection of URLs in the readme. And there is no indication in the readme that it may be wise to use the template repo as an upstream (if that works) or another way of re-synchronizing your plugin repo to the current state of the template.
Logs:
Not relevant.
Plugin Config:
Not relevant.
Screenshots:
Not relevant.
Environment:
- Plugin Version:
- Homebridge Version: 1.11.1
- Node.js Version: v22.18.0
- NPM Version: 10.9.3
- Operating System: macOS and raspbian.
- homebridge-plugin-template: cloned on 14-Jan-2023
Describe Your Problem:
I recently got back to continuing development of a Homebridge plugin on which I got started 3 years ago.
My plugin doesn't build anymore,
npm run buildgives all sorts of compilation errors in node modules that I have never heard of. They are all dependencies of some mode that I am using (I think in this case it is@abandonware/noble, but this isn't important).The problem is that my dependencies in
tsconfig.jsonare frozen in time from when I forked this repo.But the dependencies in
package.json(and not only in my package.json but also in those of my dependencies) are all of the"^version"form.So somewhere in the update between
@types/w3c-web-usbfrom1.0.6to1.0.10something broke in mytsconfig.json.When I finally thought of looking at what had changed in this repo (homebridge-plugin-template) it was clear what I had to do. But even finding this repo needed some manual inspection of URLs in the readme. And there is no indication in the readme that it may be wise to use the template repo as an upstream (if that works) or another way of re-synchronizing your plugin repo to the current state of the template.
Logs:
Not relevant.
Plugin Config:
Not relevant.
Screenshots:
Not relevant.
Environment: