zigbee2mqtt-frontend icon indicating copy to clipboard operation
zigbee2mqtt-frontend copied to clipboard

[Bug]: Settings -> Tools -> Download state button is getting Error

Open emandtf opened this issue 1 year ago • 1 comments

What happened?

Trying to download Z2M frontend state using specific button in Tools page is getting error in browser console and neither is done.

What browsers are you seeing the problem on?

Firefox, Chrome

Relevant stacktrace

Uncaught (in promise) ReferenceError: require is not defined
    _3 http://192.168.1.19:18833/assets/index-74e84a13.js:62
    exportState http://192.168.1.19:18833/assets/index-74e84a13.js:71
    action http://192.168.1.19:18833/assets/index-74e84a13.js:61
    s http://192.168.1.19:18833/assets/index-74e84a13.js:71
    Jke http://192.168.1.19:18833/assets/index-74e84a13.js:40
    twe http://192.168.1.19:18833/assets/index-74e84a13.js:40
    awe http://192.168.1.19:18833/assets/index-74e84a13.js:40
    XE http://192.168.1.19:18833/assets/index-74e84a13.js:40
    a5 http://192.168.1.19:18833/assets/index-74e84a13.js:40
    wv http://192.168.1.19:18833/assets/index-74e84a13.js:40
    CS http://192.168.1.19:18833/assets/index-74e84a13.js:43
    Aj http://192.168.1.19:18833/assets/index-74e84a13.js:40
    wv http://192.168.1.19:18833/assets/index-74e84a13.js:40
    aS http://192.168.1.19:18833/assets/index-74e84a13.js:40
    _we http://192.168.1.19:18833/assets/index-74e84a13.js:40
    r5 http://192.168.1.19:18833/assets/index-74e84a13.js:40
    kv http://192.168.1.19:18833/assets/index-74e84a13.js:40
    cd http://192.168.1.19:18833/assets/index-74e84a13.js:40
    cd http://192.168.1.19:18833/assets/index-74e84a13.js:40
    createRoot http://192.168.1.19:18833/assets/index-74e84a13.js:43
    <anonymous> http://192.168.1.19:18833/assets/index-74e84a13.js:226

Did you download state.json.zip?

I will not attach state.json.zip

emandtf avatar Sep 06 '24 03:09 emandtf

confirmed, same. Slightly different error log though (but the start is the same)

index-74e84a13.js:62 Uncaught (in promise) ReferenceError: require is not defined
    at _3 (index-74e84a13.js:62:9206)
    at exportState (index-74e84a13.js:71:17798)
    at index-74e84a13.js:61:8374
    at s (index-74e84a13.js:71:25203)
    at Object.Jke (index-74e84a13.js:40:9864)
    at twe (index-74e84a13.js:40:10021)
    at awe (index-74e84a13.js:40:10081)
    at XE (index-74e84a13.js:40:31567)
    at a5 (index-74e84a13.js:40:31985)
    at index-74e84a13.js:40:36918

hb020 avatar Sep 07 '24 15:09 hb020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 25 '25 22:04 stale[bot]