CLI 3 migration: schema error in shopify.web.toml

den232
Shopify Partner
180 8 49

Attempting to migrate app and app-extension. Getting error ... What does this mean, which line is the error on, what can/must I do?  Thanks!  jb

 

Error:

 

! Fix a schema error in shopify.web.toml:
[
{
"code": "invalid_type",
"expected": "object",
"received": "undefined",
"path": [
"commands"
],
"message": "Required"
}
]

 

-------------------

shopify.web.toml looks like this:

 

type = "frontend"
name = "sdapp6"
scopes = "write_products,write_customers,write_draft_orders"
dev = "npm run dev"

 

Reply 1 (1)

zhicheng1
Shopify Partner
28 2 6

I have the same sort of error but my app is a brand new scaffold produced by shopify cli.  Lame that it doesn't work out of the box for me.  Shopify, you need to fix your software.

 

Anyway, I was able to solve my error by looking at your older toml format.  I had to add the "type" entry which was missing by default.  Maybe you can solve yours by looking at my new toml format:

 

type = ["frontend", "backend"]
name = "remix"
roles = ["frontend", "backend"]
webhooks_path = "/webhooks"

[commands]
dev = "npm exec remix dev"

[hmr_server]
http_paths = ["/ping"]