So,
Trying to use my favorite library in SS 2.0, but not luck. Anyone else? Here's my details:
- lodash.js in SuiteScripts/DH
- my define is as followings (my script file is also in SuiteScripts/DH)
<span style="color:'#000000'">define(["require", "exports", 'N/search', 'N/ui/dialog', './lodash'], function (require, exports, search, dialog, _) {</span> Lodash seems to deploy correctly, because if I change the path ./lodash, to anything else, it fails to load that library.The first instance I tried to use it ... _.VERSION, console spits out an Cannot read property 'VERSION' of undefinedSo, why is it undefined?My buddy, John.O, suggested I use https://www.npmjs.com/package/lodash-amd, but that didn't work either.Anyone else use lodash?