-
Notifications
You must be signed in to change notification settings - Fork 4
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: libcups.so.2: cannot open shared object file: No such file or directory #9
Comments
Hi, on linux based system it's required to install libcups2, try this command: |
Is it necessary to use electron? Because I am not implementing it |
It is tested on electron, but it should work on node too, this problem seems a missing system lib path, check if this path get from this command |
It already contains the path, can be a problem on node_modules installation folder, did you remove nodes_modules and reinstalled? directory |
I tried to remove node_modules and reinstall the dependencies, but it didn't work. I understand that this command What I find strange is that I get perfect execution and printing on the thermal printer when I play the GraphQL mutation that performs this action on localhost. I think maybe I am having problems with the LD_LIBRARY_PATH environment variable, is it possible? |
Replace @grandchef with @damonsmith as that was the one I installed. |
Now its get more clear, the build was made at a different OS base than vercel are try to run, this explain why it is not finding the library, try to build at the same OS/Container than vercel |
Like Docker? |
I was able to perform different queries and other mutations, for example, add, update, get, and others. |
Yes, docker has many base container like, alpine, ubuntu, debian, you must build with the same base container than vercel https://vercel.com/docs/deployments/build-image I undersant that when not loaded the library the error does not occurr, this explain why some queries does not trigger the error |
Perfect, I'll go that way. |
Hi! I need help with this problem. I'm deploying in vercel but i have this error:
Error: libcups.so.2: cannot open shared object file: No such file or directory
at Module._extensions..node (node:internal/modules/cjs/loader:1340:18)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at r..e._load (/var/task/___vc/__launcher/bridge-server-72TT5FOD.js:1:1574)
at Module.require (node:internal/modules/cjs/loader:1143:19)
at require (node:internal/modules/cjs/helpers:119:18)
at Object. (/var/task/node_modules/@damonsmith/node-printer/lib/printer-binding.js:4:17)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32) {
code: 'ERR_DLOPEN_FAILED'
}
INIT_REPORT Init Duration: 1022.90 ms Phase: invoke Status: error Error Type: Runtime.ExitError
Error: Runtime exited with error: exit status 1
Runtime.ExitError
The text was updated successfully, but these errors were encountered: