Hi, I am new to SS 2.0. I was trying to test some ...
# suitescript
k
Hi, I am new to SS 2.0. I was trying to test some of my code in the console and I followed the two step calls: require(['N/search']); & var search = require(['N/search']);
b
the error here is probably at
Copy code
var search = require(['N/search']);
require returns the local require function when the first parameter is an array
use
Copy code
var search = require('N/search');
though to be honest, I like @dbaghdanov's suggestion more since its closer to what you would use in an actual script