MyBitFoundation / MyBit-Go.app

🔷 The MyBit Platform™ for investing in alternative assets
https://app.mybit.io
GNU General Public License v3.0
8 stars 31 forks source link

Vercel Deployment Error #547

Closed pbteja1998 closed 4 years ago

pbteja1998 commented 4 years ago

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 https://github.com/vercel/vercel/discussions/4581

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

gitcoinbot commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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

gitcoinbot commented 4 years ago

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: