kevlened / fireway

A schema migration tool for firestore
MIT License
279 stars 41 forks source link

"Unexpected token ." when running fireway #26

Closed optimistiks closed 3 years ago

optimistiks commented 3 years ago

Hi! Thanks for the library. Unfortunately, I run into an issue when running fireway migrate

.nvm/versions/node/v10.22.0/lib/node_modules/fireway/src/index.js:31
        while (this._fireway_queue?.length) {
                                   ^

SyntaxError: Unexpected token .

Does it mean only Node.js versions that support optional chaining are supported?

kevlened commented 3 years ago

Apologies. I ran my tests in Node 14. I've removed the optional chaining operators and tested down to Node 10.

I released 1.0.1 to fix the issue. Thanks for reporting. If you continue to have issues, I'll reopen this issue.