Back

Error while pushing functions from the CLI

  • 0
  • Functions
  • Web
Chidera Humphrey
9 Mar, 2025, 10:48

I tried pushing my function from the CLI and got this error: Invalid specification param: Specification must be one of: s-.

What is wrong?

For context: I changed the type from module to commonjs due to a package that I want to use only supports CommonJS.

TL;DR
Developers encountered an error while pushing functions from the CLI regarding an invalid `specification` param. The issue arose after changing the `type` from `module` to `commonjs` to support a CommonJS-only package. Solution: Make sure the specification parameter is properly set to 's' when using the CommonJS type.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more