Are you trying to use it client side or server sid...
# suitescript
m
Are you trying to use it client side or server side when you get the error?