Why am I facing a checkout UI extension deploy error in my new Shopify app?

Solved

Why am I facing a checkout UI extension deploy error in my new Shopify app?

charles52
Shopify Partner
4 0 3

I created a new shopify app and added a checkout ui extension to it using the scaffold command. When I try to deploy the app together with the extension so that I test it on a development store, I get the following error on the console

- Validation errors found in your extension toml file
└ Missing expected key(s).

The following is the shape of the shopify.ui.extension.toml

type = "checkout_ui_extension"
name = "charles-dev-checkout01"

extension_points = [
  'Checkout::Dynamic::Render'
]

[[metafields]]
namespace = "my-namespace"
key = "my-key"

# [[metafields]]
# namespace = "my-namespace"
# key = "my-key-2"

This is all that is included in the documentation https://shopify.dev/api/checkout-extensions/checkout/configuration

 

Which keys am I missing or how can I resolve this error?

Accepted Solution (1)

Parikshat_Singh
Shopify Partner
1 1 2

This is an accepted solution.

The issue is fixed, everything is fyn in the boiler plate create by the npm commands , there was some internal issue, which i think is fixed, Screenshot 2022-08-04 121707.png

I followed the steps and was able to create first checkout ui through extensions

View solution in original post

Replies 8 (8)

cr41g
Shopify Partner
1 0 0

Hi, did you manage to fix this? I am getting the same error?

charles52
Shopify Partner
4 0 3

Hey, I didn't figure it out. Let me know here if you figure out what cause this...

hasnanahmd
Shopify Partner
2 0 1

same error with me any one help me 

abhisheksingh75
Shopify Partner
10 0 2

facing same issue @charles52  if your issue is fixed..can please post your answer here

 

SimonTod
Shopify Partner
2 0 1

I am experiencing the same problem with a `checkout_post_purchase` extension. Any solution found ?

Dev890
Shopify Partner
1 0 1

I also have the same problem. Any solution yet, pls?

Parikshat_Singh
Shopify Partner
1 1 2

This is an accepted solution.

The issue is fixed, everything is fyn in the boiler plate create by the npm commands , there was some internal issue, which i think is fixed, Screenshot 2022-08-04 121707.png

I followed the steps and was able to create first checkout ui through extensions

charles52
Shopify Partner
4 0 3

Sure, this version work for me too 

@Shopify/cli": "3.5.0"