Cannot find module error

You say that you added it to backend code, yet you get the error “on the page”. I get the same error when I import on a page. This library can only be used in backend (nodejs) code (.js or .jsw file).