amitrochatesOriginal post
Rank 1: Thread
so this has happened a couple of times before as well.
When trying to execute a function this error pops up which is from the first import of node-appwrite.
Now if i create an identical copy of this function in appwrite and use the exact same code to run this copy, the same code runs in a copy but shows this error in one.
node-appwrite is installed, and exists in package.json
import { Client, Databases, Functions } from "node-appwrite";```
project-id :67a62faa00318f7ebeec
function ids: create-character-job (original, doesnt work)
create-character-job-copy (works)
Summary
Issue: Developers encountering "random cannot find 'node-appwrite' errors" when running functions.
Solution: Ensure that the build command includes `npm i`. This error may occur due to missing dependencies.
Additionally, the error may vary across functions even with identical code. Confirm that 'node-appwrite' is correctly installed and listed in the package.json file.
Project Information:
- Project ID: 67a62faa00318f7ebeec
- Function IDs:
- create-character-job (original, doesn't work)
- create-character-job-copy (works)