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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
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