I am getting this when I try to make a new script ...
# suitescript
e
I am getting this when I try to make a new script
Fail to evaluate script: All SuiteScript API Modules are unavailable while executing your define callback.
I have removed trailing commas etc, but it still will not work. How can i know what is wrong?
b
netsuite thinks you are using one of its modules outside of an entrypoint
it doesnt allow that
e
Ahh. Ok, that could be my debug code.
Copy code
if (runtime.executionContext === runtime.ContextType.DEBUGGER) {
...
}
🙌 Thank you @battk
b
if its outside of an entrypoint function, then yes