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

[BUG] Not compatible with Node 6 #16

Closed
MrKumaPants opened this issue Apr 11, 2019 · 1 comment
Closed

[BUG] Not compatible with Node 6 #16

MrKumaPants opened this issue Apr 11, 2019 · 1 comment
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@MrKumaPants
Copy link

MrKumaPants commented Apr 11, 2019

Describe the bug

Package isn't compiled down to ES6.

[root@machine]# node -r log-process-errors/build/register dist/index.min.js
./node_modules/log-process-errors/build/src/options/main.js:24
const optsC={...DEFAULT_OPTS,...optsB,level};
             ^^^

SyntaxError: Unexpected token ...
    at createScript (vm.js:56:10)
    at Object.runInThisContext (vm.js:97:10)
    at Module._compile (module.js:549:28)
    at Object.Module._extensions..js (module.js:586:10)
    at Module.load (module.js:494:32)
    at tryModuleLoad (module.js:453:12)
    at Function.Module._load (module.js:445:3)
    at Module.require (module.js:504:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/opt/exten/ms-volume/node_modules/log-process-errors/build/src/main.js:6:11)
@MrKumaPants MrKumaPants added the bug Something isn't working label Apr 11, 2019
@ehmicky
Copy link
Owner

ehmicky commented Apr 11, 2019

Hi @MrKumaPants. Thanks for reporting this.

However this module only supports Node 8 and higher: https://github.com/ehmicky/log-process-errors/blob/master/package.json#L78. More precisely the code is written for Node 11 and compiled down by Babel to Node 8.

This is because Node 6 official support will end in 3 weeks.

@ehmicky ehmicky closed this as completed Apr 11, 2019
@ehmicky ehmicky added the wontfix This will not be worked on label Apr 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants