Can't add external JavaScript library
I am trying to add moment.js file (https://momentjs.com/). In my StreamSets pipeline, I have
load('file:///usr/lib/moment.min.js');
state.moment = require('moment');
I am following this blog post: https://streamsets.com/blog/calling-e...
I get the following validation error
validation error : SCRIPTING_08 - Script error while running init script: javax.script.ScriptException: ReferenceError: "require" is not defined in <eval> at line number 2