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

SyntaxError when using mongodb #2053

Closed
TheBeastLT opened this issue Apr 1, 2019 · 2 comments
Closed

SyntaxError when using mongodb #2053

TheBeastLT opened this issue Apr 1, 2019 · 2 comments

Comments

@TheBeastLT
Copy link

I'm getting a SyntaxError when using mongodb@3.2.2 dependency. It works ok on local when i start up a server, but on now prod or using now dev I'm getting:

SyntaxError: Unexpected token *
async function* asyncIterator() {
              ^

SyntaxError: Unexpected token *
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:139:10)
    at Module._compile (module.js:616:28)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/tmp/zeit-fun-03487a6714a2b/launcher.js:9:37)
@victorsmirnov
Copy link

I have the same issue with mongodb@3.2.2 and I found that the issue is already reported https://github.com/zeit/now-builders/issues/335
Hope this might help. At least they provide a quick fix for the issue.

@paulogdm
Copy link
Member

Closing in favor of https://github.com/zeit/now-builders/issues/335

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

4 participants