timotejroiko / sweph

The definitive Swiss Ephemeris bindings for Node.js
Other
90 stars 14 forks source link

Vercel deployment gives error #22

Open ask4jm opened 1 month ago

ask4jm commented 1 month ago

Anyy clues!! Thanks

Error: Cannot find module './build/Release/sweph.node' Require stack:

timotejroiko commented 1 month ago

i have never used vercel/nextjs so i cannot test, but try looking at this:

https://github.com/eisberg-labs/nextjs-node-loader
https://github.com/eisberg-labs/nextjs-node-loader/tree/main/examples/next-14-el-slugify

CagatayUlubay commented 8 hours ago

I am using Netlify and have the same error.

I already included nextjs node loader (I had another error way earlier and including this fixed it): config.module.rules.push({ test: /\.node$/, use: [ { loader: "nextjs-node-loader", }, ], });

Sadly I still get the error from the issue: image