The cookie is used to store the user consent for the cookies in the category "Other. requirejs-config.js:356 // Uncaught ReferenceError: require is not defined. const headerEl = document.getElementById("header"); Added equivalent functions that were used from underscore.js. Uncaught referenceerror: define is not defined typescript javascript knockout.js typescript requirejs 65,742 here your typescript has compiled happily, to code that will work in a requirejs environment (technically, an amd environment). Level 1. You first need to download the script from the website, then include the lodash.js script in the scripts/ folder. The require() instructions inside the main program (index.js), work fine. while I'm trying to use a custom clientlib its throwing the error asUncaught ReferenceError: _ is not defined I added dependency as lodash also. By clicking Sign up for GitHub, you agree to our terms of service and