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

Trailing commas causing syntax error on NodeJS 6.x #66

Closed
Steveb-p opened this issue Apr 30, 2019 · 0 comments · Fixed by #67
Closed

Trailing commas causing syntax error on NodeJS 6.x #66

Steveb-p opened this issue Apr 30, 2019 · 0 comments · Fixed by #67
Labels

Comments

@Steveb-p
Copy link
Contributor

Steveb-p commented Apr 30, 2019

As reported by Jins George on slack:

Hello, I am trying to use docker-compose in a hapijs project running on node 6.3.1 and running into following error. Any idea what might be the issue?

lab --timeout 60000 -C -v -l -c -r lcov -o ./test-reports/coverage/lcov.info test/*.js

/opt/dpp/node_modules/docker-compose/index.js:235
 );
 ^
SyntaxError: Unexpected token )
   at Object.exports.runInThisContext (vm.js:76:16)
   at Module._compile (module.js:513:28)
   at Object.require.extensions.(anonymous function) [as .js] (/opt/dpp/node_modules/lab/lib/coverage.js:37:28)
   at Module.load (module.js:458:32)
   at tryModuleLoad (module.js:417:12)
   at Function.Module._load (module.js:409:3)
   at Module.require (module.js:468:17)
   at require (internal/module.js:20:19)
   at Object.<anonymous> (/opt/dpp/test/00project.test.js:6:17)

docker compose version=0.17.0


Immediate resolution was removing of trailing commas in buildAll, buildMany and push functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants