JSMonk / hegel

An advanced static type checker
https://hegel.js.org
MIT License
2.1k stars 59 forks source link

hegel fails to run at any conditions (variants.flatMap is not a function) #33

Closed unrealsolver closed 4 years ago

unrealsolver commented 4 years ago
➜  try-hegel node --version
v10.15.3
➜  try-hegel hegel
(node:8609) ExperimentalWarning: The fs.promises API is experimental
variants.flatMap is not a function

Project structure (does not seem to matter):

➜  try-hegel ls -Ral
.:
итого 20
drwxr-xr-x   3 ruslan ruslan 4096 лют 20 12:44 ./
drwxr-xr-x 108 ruslan ruslan 4096 лют 20 12:25 ../
-rw-r--r--   1 ruslan ruslan   69 лют 20 12:44 .flowconfig
-rw-r--r--   1 ruslan ruslan  129 лют 20 12:42 .hegelrc
drwxr-xr-x   2 ruslan ruslan 4096 лют 20 12:45 src/

./src:
итого 12
drwxr-xr-x 2 ruslan ruslan 4096 лют 20 12:45 ./
drwxr-xr-x 3 ruslan ruslan 4096 лют 20 12:44 ../
-rw-r--r-- 1 ruslan ruslan   82 лют 20 12:45 index.js
unrealsolver commented 4 years ago

Updating Node to v11 fixed the issue. The project should be more explicit about minimum required version of nodejs.

JSMonk commented 4 years ago

Ok, I will add the minimum required version in the documentation. Thank you ^^