-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Error when starting 2.2.0 'import assertion of type "json"' #26937
Comments
Are you using any external converters or extensions? |
no. just a pretty basic installation. I read something about configuration.yaml. Do I need to edit it? |
oh jesus, was so happy for years with v1 branch and now with v2 every update is a nitemare. Did start from scratch with 2.2.0 as 2.13 migration did not work at all....but now again im stuck at startup with the same config that worked on 2.1.3 Any idea what could be the issue...... Raspi5
|
1 similar comment
oh jesus, was so happy for years with v1 branch and now with v2 every update is a nitemare. Did start from scratch with 2.2.0 as 2.13 migration did not work at all....but now again im stuck at startup with the same config that worked on 2.1.3 Any idea what could be the issue...... Raspi5
|
@PatMan6889 can you check the node version you are running? @njordan77 can you try forcing a rebuild of the serialport library? rm -rf `find ./node_modules/.pnpm/ -wholename "*/@serialport/bindings-cpp/prebuilds" -type d`
pnpm rebuild @serialport/bindings-cpp |
tried, made things worse....
|
@njordan77 there's a typo in your rebuild command: |
sorry for the typo, did not see myself. but still did not change anything after building serials.....
|
Can you run with |
@Nerivec could you show me how to update to v20 or v22? |
Same here.
|
I get the same error message as above |
updating from v18 to v22 helped for To update: (taken from https://github.com/nodesource/distributions?tab=readme-ov-file#using-debian-as-root-nodejs-22 ) |
Indeed, upgrading node from 20 to 22 helped. |
sorry to ask, but i m confused. is the node update a different issue or this could fix the stuck situation at startup? EDIT: tried myself to update to v22, did not change anything, still stuck at startup.... |
@njordan77 your issue is different from the rest of this thread. Can you set log level to |
@Nerivec did change from info to debug. not much more insights - still stuck at this point.
[2025-04-02 12:02:17] debug: z2m: Saving state to file /opt/zigbee2mqtt/data/state.json
|
@njordan77 and after the v22 update, did you try rebuilding serialport again? Let's try a full cleanup, to be sure: rm -rf $(pnpm store path) Cleanup Z2M libraries rm -rf node_modules Install fresh Z2M libraries pnpm i --frozen-lockfile Remove existing serialport prebuilds rm -rf `find ./node_modules/.pnpm/ -wholename "*/@serialport/bindings-cpp/prebuilds" -type d` Rebuild serialport directly for your machine (keep the all logs from this one, in case it doesn't work): pnpm rebuild @serialport/bindings-cpp Rebuild Z2M pnpm run prepack |
@Nerivec did all as written above (thanks for the guidelines), but it did not change anything. here is my yaml config file, if there may be the problem located, please check. Thanks
|
@njordan77 let's continue in the other thread, the issue is similar (this one isn't): #26556 (comment) |
Got the same error as reported by @PatMan6889 when updating Z2M from v2.1.0 (Proxmox/LXC installation, SLZB-06P7). |
Unpacking nodejs (22.14.0-1nodesource1) over (18.17.1-deb-1nodesource1) ... Came from 18.17.1, after upgrading its running. Everything seems ok so far. Thank you! |
This doesn't seem to happen with all 18.x and 20.x versions, e.g. Depending on your distro, this might be enough to fix it: sudo curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get update
sudo apt-get upgrade -y More details/distros here: |
Confirm that update to 22.x works. The only thing now is all devices appears offline, even though it still works |
@deflao the frontend offline display bug should be fixed in dev branch (https://github.com/nurikk/zigbee2mqtt-frontend/releases/tag/0.9.6). |
What happened?
I updated to 2.2.0 and get this error now when I try to start:
What did you expect to happen?
To just run fine like previous versions
How to reproduce it (minimal and precise)
Upgrade from 2.1.0
Zigbee2MQTT version
2.2.0
Adapter firmware version
20230507
Adapter
Sonoff Stick
Setup
LXC on Proxmox
Debug log
No response
The text was updated successfully, but these errors were encountered: