Open ningacoding opened 2 months ago
I have the same problem, have you fixed it ?
same problem here
const FilterApi = Function("return import('bad-words')")();
(async () => {
const { Filter } = await FilterApi;
const filter = new Filter();
console.log(filter.isProfane("bad words here"));
})();
Seems like you need to dynamically import it like so.
On a NestJS project