-
Notifications
You must be signed in to change notification settings - Fork 31
Description
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