Hello.
Minor update breaks the installation. I installed ising install script years ago and was updating with autoupdater ever since.
Everything was working perfectly fine, but last update fails.
During login I tried to install minor updates as offered by UI.
After updating (which seems to be lasting forever) API service fails with error.
Error [ERR_REQUIRE_ESM]: require() of ES Module /opt/fwcloud/api/node_modules/uuid/dist-node/index.js from /opt/fwcloud/api/dist/src/sockets/messages/socket-message.js not supported. Instead change the require of index.js in /opt/fwcloud/api/dist/src/sockets/messages/socket-message.js to a dynamic import() which is available in all CommonJS modules.
Things I tried:
- Locking down npm to 8.3.2
- Upgrading Ubuntu (latest 22.04)
- Upgrading node.js.
- Installing node.js from suppliers repo instead of ubuntu's
- Removing FWCloud and installing it again.
- Cleaning, upgrading to ubuntu (24.04), installing clean
- Installing on completely new clean ubuntu 24.04
Always the same error.
I restored VM from backup and postpone the update. I thing something is wrong with the update - it relies on old node.js import module method or something.
Minor update breaks the installation. I installed ising install script years ago and was updating with autoupdater ever since.
Everything was working perfectly fine, but last update fails.
During login I tried to install minor updates as offered by UI.
| FWCloud-Websrv | 2.0.3 | 2.0.4 | |
| FWCloud-UI | 2.2.0 | 2.3.0 | |
| FWCloud-API | 2.2.0 | 2.3.0 | |
| FWCloud-Updater | 2.0.2 | 2.0.3 |
After updating (which seems to be lasting forever) API service fails with error.
Error [ERR_REQUIRE_ESM]: require() of ES Module /opt/fwcloud/api/node_modules/uuid/dist-node/index.js from /opt/fwcloud/api/dist/src/sockets/messages/socket-message.js not supported. Instead change the require of index.js in /opt/fwcloud/api/dist/src/sockets/messages/socket-message.js to a dynamic import() which is available in all CommonJS modules.
Things I tried:
- Locking down npm to 8.3.2
- Upgrading Ubuntu (latest 22.04)
- Upgrading node.js.
- Installing node.js from suppliers repo instead of ubuntu's
- Removing FWCloud and installing it again.
- Cleaning, upgrading to ubuntu (24.04), installing clean
- Installing on completely new clean ubuntu 24.04
Always the same error.
I restored VM from backup and postpone the update. I thing something is wrong with the update - it relies on old node.js import module method or something.