Back

Getting Composer Format Error

  • 1
  • Web
Asmit Kumar Rai
6 Oct, 2024, 21:26

While Running compose format <file path> or compose lint <file path> I am Getting This error. Here Is ScreenShot Of This Error.

TL;DR
Developers encountering a Composer format error likely mismatched the PHP-only formatter with a TS file. Switch to Prettier for proper formatting.
Kenny
9 Oct, 2024, 13:38

I know I posted this in general when you asked, but to just add context to this support post.

I believe composer format, uses pint, which is a PHP only formatter. So I believe your issue here is that you're trying to use the PHP formatter for the a TS file. Instead use prettier.

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