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

Vercel deployment gives error #22

Open
ask4jm opened this issue Jul 10, 2024 · 2 comments
Open

Vercel deployment gives error #22

ask4jm opened this issue Jul 10, 2024 · 2 comments

Comments

@ask4jm
Copy link

ask4jm commented Jul 10, 2024

Anyy clues!! Thanks

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

  • /vercel/path0/node_modules/sweph/index.mjs
    at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
    at /var/task/node_modules/next/dist/compiled/next-server/server.runtime.prod.js:11:28979
    at Module._load (node:internal/modules/cjs/loader:986:27)
    at /opt/rust/nodejs.js:1:11506
    at Function.Xt (/opt/rust/nodejs.js:1:11878)
    at Z.e..X._load (/opt/rust/nodejs.js:1:11476)
    at Module.require (node:internal/modules/cjs/loader:1233:19)
    at u.require (/var/task/node_modules/next/dist/compiled/next-server/server.runtime.prod.js:11:29195)
    at require (node:internal/modules/helpers:179:18)
    at 36066 (/var/task/.next/server/app/api/test/route.js:1:631) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [ '/vercel/path0/node_modules/sweph/index.mjs' ],
    page: '/api/test'
    }
@ask4jm ask4jm closed this as completed Jul 10, 2024
@ask4jm ask4jm reopened this Jul 10, 2024
@timotejroiko
Copy link
Owner

@CagatayUlubay
Copy link

CagatayUlubay commented Aug 17, 2024

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

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

3 participants