I'm getting this error when executing my function, I know it says that the Stripe import cannot go outside the function, however in the appwrite documentation there is an example of a function that imports a dependency outside of all the code.
what im doing wrong?
TL;DR
The user was getting an error stating that the appwrite function cannot use the import statement outside a module. They were unsure of what they were doing wrong. The solution suggested by Steven was to check if the "type" in the package.json file was set to "module". This fixed the issue and solved the problem.