Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flow error in optional chaining? #87

Closed
pronebird opened this issue Oct 12, 2018 · 1 comment
Closed

Flow error in optional chaining? #87

pronebird opened this issue Oct 12, 2018 · 1 comment

Comments

@pronebird
Copy link

That's what I get when running flow against my project:

yarn flow       
yarn run v1.10.1
$ flow
Error: node_modules/mongodb-memory-server/lib/util/MongoBinary.js.flow:27
 27:         process.env?.MONGOMS_DOWNLOAD_DIR || path.resolve(os.homedir(), '.mongodb-binaries'),
                         ^ Unexpected token .

Perhaps I can add node_modules/mongodb-memory-server to flow's ignore file but still.

@nodkz
Copy link
Owner

nodkz commented Oct 18, 2018

Just add this line to your flowconfig

https://github.com/nodkz/mongodb-memory-server/blob/master/.flowconfig#L43

@nodkz nodkz closed this as completed Oct 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants