const elasticlunr = require('elasticlunr');
Import of node package with require module is not working after upgrading to Angular 13 and it is throwing JS error on the browser even after it gets complied
ERROR Error: Uncaught (in promise): ReferenceError: lunr is not defined