I created a default function using cli, only adding the 'ali-oss' node dependency and not referencing it in the JS file (declared only in package. json). After deploying the function, prompt after execution:
Summary
User is experiencing an error when adding the 'ali-oss' node dependency to their function. The error message suggests a TypeError. User is unsure how to view detailed operation logs. They provide a code snippet and mention that the error occurs at line 541 in a particular file. User mentions that the function still works despite the error. They are using Appwrite 1.3.6 and Node.js 16.0.
Solution: It appears that the error is caused by not properly referencing the 'ali-oss' dependency in the JS file. Make sure to import and use the 'ali-oss' functions in your code.
wilhantian
Rank 1: Thread
Jun 3, 2023, 07:21
only adding the 'ali-oss' node dependency and not referencin, Unable to execute function
Bouahaza
Rank 4: Virtual Machine
Jun 3, 2023, 07:24
I've same error on all my function, but this havn't impact on function