Skip to content

electron app seems break #84

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

Closed
josselinchevalay opened this issue Mar 28, 2019 · 3 comments
Closed

electron app seems break #84

josselinchevalay opened this issue Mar 28, 2019 · 3 comments

Comments

@josselinchevalay
Copy link

hello,

is use a npm module wich use your project and when i try to run my application into electron i have this issue :

/node_modules/proper-lockfile/lib/lockfile.js:47
                    return acquireLock(file, { ...options, stale: 0 }, callback);
                                               ^^^
SyntaxError: Unexpected token ...
    at Object.exports.runInThisContext (vm.js:78:16)
    at Module._compile (module.js:543:28)
    at Object.require.extensions.(anonymous function) [as .js] (/home/josselin/develop/telescope/node_modules/electron-compile/lib/require-hook.js:77:14)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/home/josselin/develop/telescope/node_modules/proper-lockfile/index.js:3:18)
    at Object.<anonymous> (/home/josselin/develop/telescope/node_modules/proper-lockfile/index.js:42:3)```

any idea ? 

Regards
@satazor
Copy link
Contributor

satazor commented Mar 28, 2019

It seems that the nodejs version you are using is really old because it doesn’t support object spread.

@elantion
Copy link

Try to find out node.js version by using process.versions, if under v8.3, it doesn't have object spread feature by default. @josselinchevalay

@satazor
Copy link
Contributor

satazor commented Mar 29, 2019

Closing this as this issue is not related to this package.

@satazor satazor closed this as completed Mar 29, 2019
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

3 participants