-
-
Notifications
You must be signed in to change notification settings - Fork 206
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
Version 9.27, unable to build from source #4007
Comments
Did you try to follow error instructions?
I would also suggest to drop node_modules folder and run |
Sorry, should have mentioned that.
|
Additional info
After first build of v9.27.2, contents of same is
Missing is the module that is complained about in the original error.
|
Comparing three versions of package-lock.json, All three have an entry for "@rollup/rollup-linux-arm-gnueabihf" in an "optionalDependencies" section. And all three list different versions for this. However (1) and (3) also have this section, version number adjusted accordingly.
Without this in (2), would npm be able to download this module? |
I don't understand why that issue happens as in all the instances I tried to clone and build the repo it works, I'm quite sure the issue is something related to your local development env |
Hi, EDIT : not relevant for the current issue. Sorry. With the Zwave plugin on Jeedom system we are currently facing the same compilation error with tsc.
|
@robertsLando Have you tried building on an ARM platform? It might only be a problem there. FYI, the ZUI add-on build is failing for the same reason. https://github.com/hassio-addons/addon-zwave-js-ui/actions/runs/11821384040/job/32936018216?pr=727 Your container build has a pre-build step and all the platforms share the output. Maybe that's why you don't see a problem in CI like the add-on does? |
@madcow27 Your build errors are not the same. This project uses zwave-js-ui/docs/getting-started/other-methods.md Lines 118 to 121 in bf3bdc3
|
Comparing package-lock.json from v9.26.0 to v9.27.2, it appears the latter may only support cpu x64. Search `"cpu":' in both to see the difference. Hacking package-lock.json as follows allows a successful build on my platform.
|
@kpine definitely! I always had problems with building UI on arm also I consider it a useless waste of time to install all dev deps for all platforms just to build UI so I introduced that pre-build step and it's a time saving! About the issue I think that's due to some new deps @AlCalzone is using in v14? cc @AlCalzone any clue? |
If I'm not mistaken, rollup is a vite dependency, which is used to bundle the UI. I don't think this could be related to changes on the driver side, since it's already packaged at this stage. |
What I don't understand then is why this suddenly stopped working without any dep update on my side 😢 Anyway the only fix they suggest is to use |
I think I know why. zwave-js now has Since the version ranges that Side note...Fuck |
this change to package.json allows to build on my system
|
Checklist
Deploy method
Manually built (git clone - npm run build - npm install
Z-Wave JS UI version
9.27.2
ZwaveJS version
n/a
Describe the bug
Version 9.27, when building from source "npm run build" fails.
https://zwave-js.github.io/zwave-js-ui/#/getting-started/other-methods?id=nodejs-or-pkg-version
To Reproduce
git clone https://github.com/zwave-js/zwave-js-ui
cd zwave-js-ui
npm install
npm run build
Expected behavior
"npm run build" should complete successfully.
Additional context
System: Raspberry Pi 3 or 5, RaspberryOS version 12 (bookworm), node version 20.18.0, npm version 10.8.2
Output from "npm run build"
The text was updated successfully, but these errors were encountered: