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

Block scoped declarations not yet supported outside strict mode #11

Open
heaversm opened this issue May 11, 2016 · 2 comments
Open

Block scoped declarations not yet supported outside strict mode #11

heaversm opened this issue May 11, 2016 · 2 comments

Comments

@heaversm
Copy link

Hi - I have an app which bundles properly if I run electron . But using the interactive packager with epi builds successfully, but then when I run the app, I get the attached error:

screen shot 2016-05-11 at 5 36 22 pm

Any idea what is happening here?

@vrunoa
Copy link
Member

vrunoa commented May 11, 2016

@heaversm looks like you're using es6 on your app, am I correct ? Do you transpile the code before building the app ? I actually haven't tried to run an electron app without transpiling the code with babel. What version of electron are you using ? Have you try changing the electron version on the epi cli with the one in your local machine ?

@heinetron
Copy link

@heaversm Have you tried setting strict mode in your index.js?

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

No branches or pull requests

4 participants
@vrunoa @heaversm @heinetron and others