You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vercel is depreciating Node 16 soon but I'm having an issue getting it to work on version 18. Deploying in a serverless function on Node 16 works fine, but on Node 18 it returns an error saying the s2.node module is missing. I created a vercel-build script to locate the file in the build step and it seems to exist in the same place that it does in the working deployment. I'm not really sure how else to troubleshoot this.
Cannot find module '/var/task/node_modules/@radarlabs/s2/lib/binding/Release/node-v108-linux-x64/s2.node'
Require stack:
- /var/task/node_modules/@radarlabs/s2/index.js
Did you forget to add it to "dependencies" in `package.json`?
Got it working! Yes, it was partially related to #68. I had to include the binary created from that issue and copy it over with a vercel-build script to avoid the GLIBC_2.29 not found issue.
I also had to force include the library in the vercel.json config:
Vercel is depreciating Node 16 soon but I'm having an issue getting it to work on version 18. Deploying in a serverless function on Node 16 works fine, but on Node 18 it returns an error saying the
s2.node
module is missing. I created avercel-build
script to locate the file in the build step and it seems to exist in the same place that it does in the working deployment. I'm not really sure how else to troubleshoot this.Node 16 (working):
https://radarlabs-71k264462-unilease1.vercel.app/api/radius
Node 18 (not working):
https://radarlabs-9xyzsq3jp-unilease1.vercel.app/api/radius
Function Log error message:
Here is a repo I made to recreate the issue:
https://github.com/unilease/vercel-radarlabs-s2-mre
The text was updated successfully, but these errors were encountered: