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

Vercel Deployment Error #547

Closed
pbteja1998 opened this issue Jul 8, 2020 · 4 comments
Closed

Vercel Deployment Error #547

pbteja1998 opened this issue Jul 8, 2020 · 4 comments

Comments

@pbteja1998
Copy link
Collaborator

pbteja1998 commented Jul 8, 2020

I am working on #545 and trying to deploy the app to vercel. After making some fixes and changes locally, I got the app to work locally. It even worked locally with vercel dev without any problems.

But when I deployed it to vercel, it's not working. I am getting the following error in Functions tab of deployments

03:14:53:27
2020-06-04T21:44:55.705Z undefined ERROR Uncaught Exception
{
  "errorType": "Error",
  "errorMessage": "No native build was found for runtime=node abi=64 platform=linuxglibc arch=x64",
  "stack": [
    "Error: No native build was found for runtime=node abi=64 platform=linuxglibc arch=x64",
    " at Function.load.path (/var/task/node_modules/orbit-db-cache/node_modules/node-gyp-build/index.js:56:9)",
    " at load (/var/task/node_modules/orbit-db-cache/node_modules/node-gyp-build/index.js:18:30)",
    " at Object.<anonymous> (/var/task/node_modules/orbit-db-cache/node_modules/leveldown/binding.js:1:43)",
    " at Module._compile (internal/modules/cjs/loader.js:778:30)",
    " at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)",
    " at Module.load (internal/modules/cjs/loader.js:653:32)",
    " at tryModuleLoad (internal/modules/cjs/loader.js:593:12)",
    " at Function.Module._load (internal/modules/cjs/loader.js:585:3)",
    " at Module.require (internal/modules/cjs/loader.js:692:17)",
    " at require (internal/modules/cjs/helpers.js:25:18)",
    " at Object.<anonymous> (/var/task/node_modules/orbit-db-cache/node_modules/leveldown/leveldown.js:3:17)",
    " at Module._compile (internal/modules/cjs/loader.js:778:30)",
    " at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)",
    " at Module.load (internal/modules/cjs/loader.js:653:32)",
    " at tryModuleLoad (internal/modules/cjs/loader.js:593:12)",
    " at Function.Module._load (internal/modules/cjs/loader.js:585:3)",
    " at Module.require (internal/modules/cjs/loader.js:692:17)",
    " at require (internal/modules/cjs/helpers.js:25:18)",
    " at Object.<anonymous> (/var/task/node_modules/orbit-db-cache/index-nodejs.js:1:15)",
    " at Module._compile (internal/modules/cjs/loader.js:778:30)",
    " at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)",
    " at Module.load (internal/modules/cjs/loader.js:653:32)"
  ]
}
Unknown application error occurred
Error

The error most likely is caused because of some package/library not existing(or a different non-compatible version exists) in vercel's environment. Since it's running locally in my system, my machine might already have that package/library.
From what I understand and read about similar errors, it is something to do with gcc/g++ compiler version being different in vercel environment? and One of the packages in this app requires that version of gcc/g++? I am not sure completely.

I tried contacting vercel support. But they need a min reproducible repo that has similar bug. Only then, they will help us to resolve it. But, I have no idea which package in this app is causing the error, so it's difficult to create a min reproducible repo.

There is some discussion regarding this at vercel/vercel#4581

For the app to run locally, you can apply the changes from #546

@gitcoinbot
Copy link

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


This issue now has a funding of 300.0 DAI (300.0 USD @ $1.0/DAI) attached to it.

@gitcoinbot
Copy link

gitcoinbot commented Jul 9, 2020

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work has been started.

These users each claimed they can complete the work by 1 month from now.
Please review their action plans below:

1) iamonuwa has been approved to start work.

I've worked on MyBitFoundation app in the past. I've deployed to vercel (formerly now). This is a simple issue for me to resolve.

Learn more on the Gitcoin Issue Details page.

@cryptnotiq
Copy link
Contributor

@iamonuwa if you have any questions please join t.me/mybitio

@gitcoinbot
Copy link

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work for 300.0 DAI (300.0 USD @ $1.0/DAI) has been submitted by:

  1. @iamonuwa

@cryptnotiq please take a look at the submitted work:


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

Successfully merging a pull request may close this issue.

3 participants