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

Deployment: Failing #28

Open
jackdishman opened this issue Jun 13, 2023 · 2 comments
Open

Deployment: Failing #28

jackdishman opened this issue Jun 13, 2023 · 2 comments

Comments

@jackdishman
Copy link

yarn run build in packages/nouns-webapp works fine and I can serve the build files locally using serve -s build. It's on Vercel that yarn run build is crashing:

[08:03:23.979] gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
[08:03:23.979] ../hidapi/linux/hid.c:44:10: fatal error: libudev.h: No such file or directory
[08:03:23.979]  #include <libudev.h>
[08:03:23.980]           ^~~~~~~~~~~
[08:03:23.980] compilation terminated.
[08:03:23.980] make: *** [Release/obj.target/hidapi-linux-hidraw/hidapi/linux/hid.o] Error 1
[08:03:23.981] gyp ERR! build error 
[08:03:23.981] gyp ERR! stack Error: `make` failed with exit code: 2
[08:03:23.981] gyp ERR! stack     at ChildProcess.onExit (/vercel/path0/node_modules/node-gyp/lib/build.js:194:23)

Goal here is to deploy the webapp on any hosting service!

@jackdishman jackdishman changed the title Deployment: Failing due to libdev.h Deployment: Failing Jun 13, 2023
@jackdishman
Copy link
Author

dotenv:

# Active Chain ID
REACT_APP_CHAIN_ID=5

# If you have an Infura Project ID
REACT_APP_INFURA_PROJECT_ID=f11ef31e33694bf6a80958a8adfb1f77

@ghost
Copy link

ghost commented Jul 2, 2023

👋 @jackdishman

Wanted to ping you here as well in-case the discussions thread didn't notify you (ref: nounsDAO#685 (comment)).

tl;dr: I'm fairly sure the issue is system libraries being unavailable in the Vercel build environment, the comment I posted in the discussion should have pointers to get you going though. I hope it's helpful!

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