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

Don't hard code main.js, use main file from package.json #56

Closed
jancurn opened this issue Sep 13, 2018 · 0 comments
Closed

Don't hard code main.js, use main file from package.json #56

jancurn opened this issue Sep 13, 2018 · 0 comments
Assignees

Comments

@jancurn
Copy link
Member

jancurn commented Sep 13, 2018

When you run apify init in a normal Node.js project with other main file than 'main.js', it succeeds, but then when you run apify run you get this error:

Error: The "main.js" file not found in the current directory. Call "apify init" to create it.

We shouldn't hard-code "main.js" anywhere, user can use any file. Just read it from package.json

@drobnikj drobnikj self-assigned this Sep 14, 2018
drobnikj added a commit that referenced this issue Sep 17, 2018
[WIP]Fix #56, fix tests, fix templates
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