Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Lodash in SS 2.0
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 undefined
So, why is it undefined?
0