Solved

npm run dev throw error "Fix a schema error in shopify.web.toml"

Ridzz
Shopify Partner
11 2 0

When I try to run "npm run dev" I am getting the following error since yesterday. The same code works fine on deployment. 

error
Fix a schema error in web/shopify.web.toml:


{

"expected": "'frontend' | 'backend'",

"received": "undefined",

"code": "invalid_type",

"path": [

"type"

],

"message": "Required"

}

|

Can someone please assist me in resolving this issue?

Accepted Solution (1)

Ridzz
Shopify Partner
11 2 0

This is an accepted solution.

I resolved the issue by updating my Node.js version and re-installing the required npm packages in my application.

View solution in original post

Replies 2 (2)

Ridzz
Shopify Partner
11 2 0

This is an accepted solution.

I resolved the issue by updating my Node.js version and re-installing the required npm packages in my application.

Eduardosent
Shopify Partner
6 0 0

My node version is LTS, only using the template to payments app, not even I wrote code, so useless , work creating a shopify app is a headache