can't find runtime.js in pug folder

120 views Asked by At

as official tutorial said:

Be sure to send the Pug runtime (node_modules/pug/runtime.js) to the client in addition to the template that you just compiled.

but actually cannot find out in node_modules/pug folder. in addition, i searched each sub-folders and each files, still no. can anyone help on this? enter image description here

2

There are 2 answers

0
Shahriar Ahmed On

When you install pug via "npm i --save pug" then in node_modules folder some folder are added which are related to pug. At that time a folder named node_modules/regenerator-runtime is also added. You can find runtime.js at that folder.

1
Jonathan Arbely On

Some parts of the official documentation and tutorials haven't been updated in a while. This issue however has been discussed over at the projects GitHub repository. You can read through it here:

runtime.js not existing. #2547