🐛 Bug Report: 22.1.0 causing errors on nextjs actions.

Open
#141 0 comments 0 reactions 1 assignee View on GitHub

@ChiragAgg5k is already working on this.

Since Feb 24, 2026.

Assessment

This issue has not been assessed yet.

Description

bug
👟 Reproduction steps

Get the user in a server action
const user = await account.get();

and return the value to the client.

Error: Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported. {} at ignore-listed frames { digest: '2206141838' }

After some investigation that is caused by the new bigint library used in 22.1.0.

user [Object: null prototype] { '$id': '', '$createdAt': '', '$updatedAt': '', name: '' }

the returned object is now a [Object: null prototype].

👍 Expected behavior

Return: {}

👎 Actual Behavior

Return: [Object: null prototype] {}

🎲 Appwrite version

Different version (specify in environment)

💻 Operating system

MacOS

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?
  • I checked and didn't find similar issue
🏢 Have you read the Code of Conduct?
Dominant language
TypeScript
Stars
257
Forks
45
Avg merge
11h 59m
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from appwrite/sdk-for-node

All issues in appwrite/sdk-for-node

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.