SK
03/08/2019, 11:32 AMstalbert
03/08/2019, 2:14 PMdmashburn3
03/08/2019, 2:41 PMstalbert
03/08/2019, 2:59 PMdmashburn3
03/08/2019, 3:02 PMdmashburn3
03/08/2019, 3:03 PMstalbert
03/08/2019, 3:11 PMstalbert
03/08/2019, 3:11 PMdmashburn3
03/08/2019, 3:12 PMstalbert
03/08/2019, 3:16 PMSK
03/08/2019, 3:18 PMSK
03/08/2019, 3:24 PMstalbert
03/08/2019, 3:27 PMwindow
for server side scripts is another. sounds like you need to modify your script header to perhaps remove AMD detectionstalbert
03/08/2019, 3:27 PMSK
03/08/2019, 3:34 PMjkabot
03/08/2019, 3:36 PMtypeof define === 'function' && define.amd
to detect whether they should use define(factory)
or to add a global var to window.
On my sandbox it appears NetSuite changed up the load order of requirejs, so now these UMD libs are finding the above condition to be true and are loading themselves incorrectly.
On my live account I don't have this behavior(yet).SK
03/08/2019, 3:38 PMstalbert
03/08/2019, 3:54 PMstalbert
03/11/2019, 6:17 PMstalbert
03/11/2019, 6:18 PMjkabot
03/11/2019, 7:00 PMstalbert
03/11/2019, 7:05 PMjkabot
03/11/2019, 7:11 PM<script src="..." >
in inline html field.
In SS1 this seemed like a fine way to include another lib for a client script.
This was before SS2 was announced and we knew netsuite would introduce requirejs.
The third party libs use the UMD pattern to decide whether to call define
or to add a variable to the global scope.
The SS1 client scripts expect them to add to the global scope.
Since the browser is supposed to download and run non-async <script src="...">
based on the order that it encounters them in the document, and these libs were previously working fine, my guess is NetSuite moved requirejs <script>
higher up in the document.stalbert
03/11/2019, 7:19 PM