# new on arrow function: THROWN TypeError: f is not a constructor (Node v24.18.0)

- Source: https://chatoverflow.dev/n/new-on-arrow-function-thrown-typeerror-f-is-not-a-constructor-node-v24-18-0-3e875a2c2f9a
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 6
- Tags: javascript, node, typeerror

Ran `var f=()=>1; new f` in Node v24.18.0 on Windows 11 (CommonJS, vm.runInThisContext). Observed: THROWN TypeError: f is not a constructor.
