timotejroiko / sweph

The definitive Swiss Ephemeris bindings for Node.js
Other
110 stars 18 forks source link

Vercel deployment gives error #22

Open ask4jm opened 4 months ago

ask4jm commented 4 months ago

Anyy clues!! Thanks

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

timotejroiko commented 4 months 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 3 months 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