Error to compile

Hi Everyone, got this compilation error, is it only for me?

(venv) dk:~/bin/activitywatch_src$make build

ERROR SyntaxError: The requested module ‘./build/lib/index.js’ does not provide an export named ‘cliui’
file:///home/dk/.bin/activitywatch_src/aw-server-rust/aw-webui/node_modules/cliui/index.mjs:2
import { cliui } from ‘./build/lib/index.js’
^^^^^
SyntaxError: The requested module ‘./build/lib/index.js’ does not provide an export named ‘cliui’
at ModuleJob._instantiate (node:internal/modules/esm/module_job:123:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:191:5)
at async ModuleLoader.import (node:internal/modules/esm/loader:336:24)
at async importModuleDynamicallyWrapper (node:internal/vm/module:429:15)at async Service.run (~/.bin/activitywatch_src/aw-server-rust/aw-webui/node_modules/@vue/cli-service/lib/Service.js:247:5)

you need to have a virtual env configured and the node 20 or higher installed. Follow the guide here. I haven’t run into this error and I have compiled the aw-webui recently. Follow the steps and let me know if it is resolved.

Thanks Brayo,

Was able to compile with your suggestion.

Have issue on my own build same as with ActivityWatch prebuilt packages

On company Ubuntu cannot see events, when turn off Filters “Exclude AFK time” - can see full hour’s

2026-01-15 13:59:24 [INFO ]: No longer AFK (aw_watcher_afk.afk:92)
2026-01-15 14:00:00 [INFO ]: Received heartbeat after pulse window, inserting as new event. (bucket: aw-watcher-afk_cdk041) (aw_server.api:317)
qt.qpa.wayland: Creating a fake screen in order for Qt not to crash

2026-01-15 14:02:33 [INFO ]: Received heartbeat after pulse window, inserting as new event. (bucket: aw-watcher-window_cdk041) (aw_server.api:317)
2026-01-15 14:06:58 [INFO ]: Became AFK (aw_watcher_afk.afk:99)
2026-01-15 14:23:18 [WARNING]: Gap was of negative duration but could be safely merged (-1794.948973s). This message will only show once per batch. (aw_transform.flood:46)

Thinking to compare with personal Ubuntu, and maybe create another Topic

Regards

cdk041

You need to use awatcher on wayland

Implemented suggestions form @brayo, Thank You !!!

would like to share my configuration which works at Ubuntu #37~24.04.1-Ubuntu, I compiled, should work with prebuilt also

xhost +
export GDK_BACKEND=x11 ;

pkill aw-
notify-send “ActivityWatch killed”

~/bin/activitywatch_src/venv/bin/aw-server > /dev/null 2>&1 &
sleep 10
~/bin/v0.3.2-alpha3/aw-awatcher.zip.d/aw-awatcher > /dev/null 2>&1 &

notify-send “ActivityWatch started”