Error: C:Users97798DesktopCWH_WEB_DEVLOPMENTExpressDANCE__WEBSITEviewshome.pug:12:1 Only named blocks and mixins can appear at the top level of an extending template at makeError (C:Users97798DesktopCWH_WEB_DEVLOPMENTExpressDANCE__WEBSITEnode_modulespug-errorindex.js:34:13) at error (C:Users97798DesktopCWH_WEB_DEVLOPMENTExpressDANCE__WEBSITEnode_modulespug-linkerindex.js:7:30) at addNode (C:Users97798DesktopCWH_WEB_DEVLOPMENTExpressDANCE__WEBSITEnode_modulespug-linkerindex.js:37:9) at Array.forEach (<anonymous>) at link (C:Users97798DesktopCWH_WEB_DEVLOPMENTExpressDANCE__WEBSITEnode_modulespug-linkerindex.js:29:15) at compileBody (C:Users97798DesktopCWH_WEB_DEVLOPMENTExpressDANCE__WEBSITEnode_modulespuglibindex.js:194:9) at exports.compile (C:Users97798DesktopCWH_WEB_DEVLOPMENTExpressDANCE__WEBSITEnode_modulespuglibindex.js:269:16) at handleTemplateCache (C:Users97798DesktopCWH_WEB_DEVLOPMENTExpressDANCE__WEBSITEnode_modulespuglibindex.js:242:25) at exports.renderFile (C:Users97798DesktopCWH_WEB_DEVLOPMENTExpressDANCE__WEBSITEnode_modulespuglibindex.js:454:10) at exports.renderFile (C:Users97798DesktopCWH_WEB_DEVLOPMENTExpressDANCE__WEBSITEnode_modulespuglibindex.js:444:21)
we devlopment pug Inheritance error in a child classs
Share
are you using
extends
then,its a simple indentation error:
even comments produce error
to work around you have to indent comments aswell or use
//-
instead of using//
Thank you Dear brother for helping me.