Today i started build my first app with appwrite ❤️
and i working with tutorial on apwrite.io but my console is logging:
./node_modules/node-fetch/lib/index.js
./node_modules/cross-fetch/dist/node-ponyfill.js
./node_modules/appwrite/dist/esm/sdk.js
./src/lib/context/user.tsx
⚠ ./node_modules/node-fetch/lib/index.js
Module not found: Can't resolve 'encoding' in '/Users/sta/WebstormProjects/appwrite-project/node_modules/node-fetch/lib'
Import trace for requested module:
./node_modules/node-fetch/lib/index.js
./node_modules/cross-fetch/dist/node-ponyfill.js
./node_modules/appwrite/dist/esm/sdk.js
./src/lib/context/user.tsx```
Install the encoding package
oh, It really works. Thank you. But it's not mentioned anywhere.
ya...are you using nextjs?
yes
im pretty sure i've only seen this with nextjs...and when executed in the edge runtime
i hate nextjs 😜
I noticed 😅 You only have documentation for pure React
Recommended threads
- execution failed
When executing an appwrite function, I'm getting a 500 error, but I don't see it in executions. This issue appeared today. Here's the appwrite function ID: 68b4...
- How to use appwrite types
I am using appwrite types --language ts ./types to generate the types yielding something like: ``` import type { Models } from 'node-appwrite'; // This file i...
- Dynamic Roles
I tried to store a row with this permissions: permissions.push( Permission.read(Role.users("verified")), Permission.write(Role.label(`c-${calend...