after configuring webpack in express and then an new folder fomed but when i run bundle.js it successfully give a meassage- server is running on port 3000 bout when i hit api http://localhost:3000/api/test it gives loads whole bundle .js in console and give error as
Error: Cannot find module 'pug' at t (D:\wfh\Frontend-3.0-20220119T061742Z-001\Frontend-3.0\compressed\bundle.js:2:840468) at new p (D:\wfh\Frontend-3.0-20220119T061742Z-001\Frontend-3.0\compressed\bundle.js:2:839766)
or can anyone tell me how not to have index.html output i want index.pug output