New Shopify Certification now available: Liquid Storefronts for Theme Developers

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

Solved
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

Reply 1 (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.