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/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'
}
The text was updated successfully, but these errors were encountered:
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", }, ], });
Anyy clues!! Thanks
Error: Cannot find module './build/Release/sweph.node'
Require stack:
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'
}
The text was updated successfully, but these errors were encountered: