Trying to add functionality on pos cart page

Hey,
I’m working on adding some functionality to the Shopify POS cart page using the POS UI Extension for cart line item details (highlighted in the image).

However, when I install the extension, it displays a tile on the POS dashboard and throws an error.

Can you guide me on how to properly add functionality when the cart page loads — for example, how to show a toast message when the cart is opened?

Thanks in advance!

Hi @Udit_Kumar

What error are you seeing? Will need more info to help you troubleshoot this.

After generating the extension using the CLI command and adding it from the POS app settings, the tile is showing an error message: “App failed to load,” as seen in the image.

And you haven’t made any code changes to the boilerplate that’s generated?

No, I have not made any changes, everything is still set to the default from the generated boilerplate.