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: Unexpected token #15

Open
axmav opened this issue Aug 26, 2019 · 2 comments
Open

SyntaxError: Unexpected token #15

axmav opened this issue Aug 26, 2019 · 2 comments

Comments

@axmav
Copy link

axmav commented Aug 26, 2019

Hi!
I want to use your lib to stringify JSON. So i just added
const json = require('big-json');
to my project and got this errors:

/myproj/node_modules/into-stream/index.js:34
			(async () => {
			       ^
SyntaxError: Unexpected token (
    at Object.exports.runInThisContext (vm.js:76:16)
    at Module._compile (module.js:542:28)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/myproj/node_modules/big-json/lib/index.js:8:20)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/myproj/controllers/posts.js:10:14)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)

NODE v6.10.0
NPM 3.10.10

@DonutEspresso
Copy link
Owner

Hi @Mazorati, it seems the into-stream module is now using async functions which isn't supported in Node6. Try Node8+?

@DonutEspresso
Copy link
Owner

Closing as stale.

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