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

no such file for index.js for the main entry in package.json #61

Closed
deepak opened this issue Jan 3, 2017 · 1 comment
Closed

no such file for index.js for the main entry in package.json #61

deepak opened this issue Jan 3, 2017 · 1 comment

Comments

@deepak
Copy link

deepak commented Jan 3, 2017

main in package.json points to "index.js"

But there is no such file. and running require('electron-forge')
gives the error "Error: Cannot find module 'electron-forge'"

I get that electron-forge is a CLI program. so not even sure if this bug is important
but maybe we can remove the entry for main from package.json, if it is not used ?

@deepak deepak changed the title entry for main in package.json is broken no such file for index.js for the main entry in package.json Jan 3, 2017
@MarshallOfSound
Copy link
Member

MarshallOfSound commented Jan 3, 2017

It's there as a placeholder and whether it is there or not it will still throw the "can not find module" error.

See #56 for how we plan to expose the CLI methods as JS API's so you can actually require this module.

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

2 participants