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

Error during build #67

Closed
itsnwa opened this issue Aug 19, 2019 · 1 comment
Closed

Error during build #67

itsnwa opened this issue Aug 19, 2019 · 1 comment

Comments

@itsnwa
Copy link
Contributor

itsnwa commented Aug 19, 2019

I'm trying to migrate to Now v2 with a new clone of this Hazel server, my config looks like this:

now.json

{
  "version": 2,
  "name": "brandy-hazel-server",
  "alias": ["hazel-server-qrpzcymewp"],
  "builds": [
    {
      "src": "lib/server.js",
      "use": "@now/node"
    }
  ],
  "routes": [
    {
      "src": ".*",
      "dest": "/lib/server.js"
    }
  ]
}

Now CLI

now -e ACCOUNT="itsnwa" -e REPOSITORY="brandy" -e TOKEN="<access_token>" -e URL="<same_as_alias_in_config(https://hazel-server-qrpzcymewp.now.sh)>"

When I look at the log in the zeit dashboard, I get this:

START RequestId: adb906da-6a33-4c6a-80cb-4d419bea9277 Version: $LATEST
2019-08-19T17:48:22.228Z	adb906da-6a33-4c6a-80cb-4d419bea9277	Cannot find module '.'
2019-08-19T17:48:22.228Z	adb906da-6a33-4c6a-80cb-4d419bea9277	Did you forget to add it to "dependencies" in `package.json`?
END RequestId: adb906da-6a33-4c6a-80cb-4d419bea9277
REPORT RequestId: adb906da-6a33-4c6a-80cb-4d419bea9277	
Duration: 42.09 ms  Billed Duration: 100 ms   Memory Size: 3008 MB  Max Memory Used: 22 MB	
RequestId: adb906da-6a33-4c6a-80cb-4d419bea9277 Process exited before completing request
@itsnwa
Copy link
Contributor Author

itsnwa commented Aug 20, 2019

#68

@itsnwa itsnwa closed this as completed Nov 16, 2020
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

1 participant