N
Neon2y ago
optimistic-gold

Error: node_modules\.pnpm\ws@8.16.0\node_modules\ws\lib\buffer-util.js

Hey! Im developing an app using - Neon (serverless) - Prisma - NextAuth NextJS App Router. I am trying to connect to the db to store data through NextAuth's Adapter. However that isnt working, so I am trying to do after login manually, however getting an error explaining my ws module within node_modules is conflicting with mainly NextJS:
npm ERR! code ELSPROBLEMS
npm ERR! invalid: ws@8.16.0 C:\Users\danfr\Desktop\Net Worth\Coding\SaaS\Real\investment_hub\node_modules\ws
investment_hub@0.1.0 C:\Users\danfr\Desktop\Net Worth\Coding\SaaS\Real\investment_hub
├─┬ next-auth@4.24.7 -> .\node_modules\.pnpm\next-auth@4.24.7_next@14.1.4_react-dom@18.2.0_react@18.2.0\node_modules\next-auth
│ └─┬ next@14.1.4 invalid: "13.3.0" from node_modules/.pnpm/next-auth@4.24.7_next@14.1.4_react-dom@18.2.0_react@18.2.0/node_modules/next-auth, "13.3.0" from node_modules/.pnpm/next-auth@4.24.7_next@14.1.4_react-dom@18.2.0_rees/.pnpm/next@14.1.4_react-dom@18.2.0_react@18.2.0/node_modules/next -> .\node_modules\.pnpm\ws@8.16.0\node_modules\ws
...
npm ERR! code ELSPROBLEMS
npm ERR! invalid: ws@8.16.0 C:\Users\danfr\Desktop\Net Worth\Coding\SaaS\Real\investment_hub\node_modules\ws
investment_hub@0.1.0 C:\Users\danfr\Desktop\Net Worth\Coding\SaaS\Real\investment_hub
├─┬ next-auth@4.24.7 -> .\node_modules\.pnpm\next-auth@4.24.7_next@14.1.4_react-dom@18.2.0_react@18.2.0\node_modules\next-auth
│ └─┬ next@14.1.4 invalid: "13.3.0" from node_modules/.pnpm/next-auth@4.24.7_next@14.1.4_react-dom@18.2.0_react@18.2.0/node_modules/next-auth, "13.3.0" from node_modules/.pnpm/next-auth@4.24.7_next@14.1.4_react-dom@18.2.0_rees/.pnpm/next@14.1.4_react-dom@18.2.0_react@18.2.0/node_modules/next -> .\node_modules\.pnpm\ws@8.16.0\node_modules\ws
...
// import { useState } from "react";

import { useSession } from "next-auth/react";
import Dashboard from "../components/Dashboard";
import db from "@/db/page";
import { getServerSession } from "next-auth";

const Page = async () => {
const user = await getServerSession();

const userData = await db.user.findMany();

return (
<div className="mt-3">
<Dashboard />;
</div>
);
};

export default Page;
// import { useState } from "react";

import { useSession } from "next-auth/react";
import Dashboard from "../components/Dashboard";
import db from "@/db/page";
import { getServerSession } from "next-auth";

const Page = async () => {
const user = await getServerSession();

const userData = await db.user.findMany();

return (
<div className="mt-3">
<Dashboard />;
</div>
);
};

export default Page;
Here is my Repo: https://github.com/Danfraga33/investment_hub for any other. I am following the docs of prisma, next auth, however being told by gemini that the issue is with neon.
2 Replies
xenial-black
xenial-black2y ago
Did you try the steps here? I've never seen this error before, but seems to be something with your dependencies: https://stackoverflow.com/questions/71152952/what-does-npm-err-code-elsproblems-mean
Stack Overflow
What does npm ERR! code ELSPROBLEMS mean?
Building a node project, using serverless Firstly I get the error Error: Error: npm ls -prod -json -depth=1 failed with code 1 at ChildProcess.<anonymous> (/Users/jrobens/NetBeansProjects/a...
xenial-black
xenial-black2y ago
Your repo returns a 404 BTW

Did you find this page helpful?