NeonN
Neon2y ago
2 replies
brilliant-lime

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
...



// 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.
Was this page helpful?