This repository has been archived by the owner on Sep 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 863
Improve "Error: You have defined functions but no node_modules has been found. Please run npm install" #824
Milestone
Comments
When would this error occur. If I have a package.json, but I don't use any modules in my functions, would I still get the error? |
No, currently this error only occurs if you are requiring modules, but no |
Is there a check in place for requiring built-in modules, like 'fs' or 'util'? |
I haven't tried it, not sure. |
If that's the case, we should definitely adjust this... 🙂 |
Just tested it and it fails. Will create a new issue. |
Also see #831 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
If you have a
package.json
, but you did not specify the right dependencies, you will runnpm install
, butgraphcool deploy
will show the same error again.I suggest this error message:
The text was updated successfully, but these errors were encountered: