I’m a new n8n user so this may be operator error/ignorance, but I can’t seem to use the $getWorkflowStaticData() function.
The function is not recognized by the editor (red squiggle underline) and the editor suggests:
Cannot find name '$getWorkflowStaticData'. Did you mean 'workflowStaticData'?
I am using the sample workflow:
I saw this issue, but can’t tell if it is related: $getWorkflowStaticData is not defined · Issue #12125 · n8n-io/n8n · GitHub
Information on n8n setup
- n8n version: 1.81.4
- Running n8n via Docker
- Operating system: Ubuntu 22.04.5 LTS
I’m not sure on the other details. I start n8n with this command:
sudo docker run -it --rm --detach --name n8n -p 5678:5678 \
-v n8n_data:/home/node/.n8n \
-e GENERIC_TIMEZONE="Europe/Berlin" \
-e TZ="Europe/Berlin" \
-e N8N_RUNNERS_ENABLED=true \
-e N8N_SECURE_COOKIE=false \
docker.n8n.io/n8nio/n8n
