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

exports already declared Node/Electron #4

Open
EldoranDev opened this issue Mar 30, 2017 · 4 comments
Open

exports already declared Node/Electron #4

EldoranDev opened this issue Mar 30, 2017 · 4 comments

Comments

@EldoranDev
Copy link

I just wanted to use this project in side of my electron app and got the following error.

SyntaxError: Identifier 'exports' has already been declared

I tried in an empty node project and got the same error.

Electron: 1.6.2
Node: 7.7.2

@tmfksoft
Copy link

I have the same issue when trying to go from a clean install and using the sample in the README.

Tried with Node and with Electron.
Node: 7.2.1
Electron: 1.6.5

D:\NodeJS\razer\node_modules\razer-chroma\boot.js:1 (function (exports, require, module, __filename, __dirname) { let exports ^^^^^^^ SyntaxError: Identifier 'exports' has already been declared at Object.exports.runInThisContext (vm.js:78:16) at Module._compile (module.js:543:28) at Object.Module._extensions..js (module.js:580:10) 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> (D:\NodeJS\razer\index.js:1:78) at Module._compile (module.js:571:32)

@tmfksoft
Copy link

Though I fixed this by removing line 1 of boot.js

@ch3rn0v
Copy link

ch3rn0v commented Dec 10, 2017

This fix worked for me too. Do you want to create pull request fixing that?

@KriyenKP
Copy link

KriyenKP commented Jul 3, 2018

What line did you remove?

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