'Unexpected end of input, expected the token }

Does anyone know how to fix this error when trying to run npx flow?

enter image description here



Solution 1:[1]

I resolved the issue by adding declarations in .flowconfig

[declarations]
<PROJECT_ROOT>/node_modules/resolve/.*

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 pdzxc