I am using Visual Studio to create Node.js application. I created a Node project by selecting Blank Express Application project template from JavaScript project type.
After creating project I pressed F5 to run application. On running application I got following error
Solving this error is very easy. From views folder in project open layout.jade. You will find below code
First line of code contains doctype 5. You need to replace it with doctype html
Now go ahead and press F5 to run application. You should not get above exception and in browser expected output you will get as below,
I hope you find this post useful. Thanks for reading.
One thought on “Error: `doctype 5` is deprecated, you must now use `doctype html`: Node.js Express App bug solved”