Skip to content Skip to sidebar Skip to footer

Warning: Unexpected Block "scripts" Jade

I wrote a jade file as shown below: extends layout block content h1= title p Welcome 123 to #{title} block scripts script(src='/socket.io/socket.io.js') script(src='/java

Solution 1:

You should add the line: block scripts to your layout.jade file.

Solution 2:

I was having the same error and was a typo with the spaces mixed with tabs. Try to remove all the spaces and add again. It worked with me: block conten*th*1= titlep Welcome 123 to #{title} Press enter between the th, ep and then add spaces to indent. I hope that helps.

Post a Comment for "Warning: Unexpected Block "scripts" Jade"