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

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?

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

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