Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Buffer is not defined #3520

Open
Open
@Marvellous111

Description

I am building with nuxt and using better-auth for authentication and I installed pg for the Pool, sadly it has been showing me an error which i do not understand what the issue is:
Uncaught ReferenceError: Buffer is not defined
at new Writer (buffer-writer.ts:8:19)
at node_modules/.pnpm/pg-protocol@1.10.3/node_modules/pg-protocol/dist/serializer.js (serializer.ts:19:16)
at __require (chunk-G3PMV62Z.js:8:50)
at node_modules/.pnpm/pg-protocol@1.10.3/node_modules/pg-protocol/dist/index.js (index.ts:2:1)
at __require (chunk-G3PMV62Z.js:8:50)
at node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/connection.js (connection.js:5:30)
at __require (chunk-G3PMV62Z.js:8:50)
at node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/client.js (client.js:11:20)
at __require (chunk-G3PMV62Z.js:8:50)
at node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/index.js (index.js:3:16)

now at the same time i should probably note that this was working before, and well infact but ended up throwing the error once i tried to migrate to nuxt 4.0.0, I am trying to migrate once more but I want to see if i can resolve this by moving back to nuxt 3.17.7 where it worked before and try to get it to work there before migrating once more, just incase.

But if there are any updates I will update this issue, for now i think i would really love some guidance on what to do here, if its from me or the package compatibility with the latest nuxt. I have also opened an issue on the nuxt discussions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /