Josh Godfrey
04/20/2022, 7:58 PMerror.SuiteScriptModuleLoaderError
Full Error:
Fail to evaluate script: {"type":"error.SuiteScriptModuleLoaderError","name":"UNEXPECTED_ERROR","message":"missing ; before statement (/SuiteScripts/Employee Equity/plx_cm_employee_equity_module.js#8)","stack":[]}
Client Script Sample:
define(['N/error', 'N/query', 'SuiteScripts/Employee Equity/plx_cm_employee_equity_module'],
    
    function (error, query, plx_cm_employee_equity_module) {
        
        function pageInit(scriptContext) {
            log.debug('pageInit fired')
        }
Custom Module Sample:
define([],
    function () {
        let counter = 0
        const incrementValue = () => {
            counter++
        }
        const getValue = () => {
            return counter
        }
        return {
            incrementValue : incrementValue,
            getValue : getValue
        };
    });Josh Godfrey
04/20/2022, 8:02 PMdefine(['N/error', 'N/query', './plx_cm_employee_equity_module'],mattdahse
04/20/2022, 8:13 PMJosh Godfrey
04/20/2022, 8:14 PMJosh Godfrey
04/20/2022, 8:16 PMmichoel
04/20/2022, 10:15 PM