Facing the issue in a field change event for the f...
# suitescript
d
Facing the issue in a field change event for the first time when I change a field value Second-time error doesn't show up {"type":"error.SuiteScriptError","name":"Error","message":"Mismatched anonymous define() module: function(format, record, runtime, search, url,currentRecord,http)
b
your error suggests that your some code is using define incorrectly
find whichever client script's define looks like that and fix it
d
@battk i am not sure what needs to be fixed in define
b
what does your code look like
d
b
that looks normal
are there any other client scripts?
d
@battk its the only clientscript i have attached it to Suitelet
@battk I had a copy of suite let and client script from the existing , i made sure filename of CS and SL are different
@battk i have inactivated the old deployment as well stil i face the issue
b
my guess is that something wierd is going on when you use window.open
d
okay
let me comment n check it out
@battk Still the same issue
b
still sounds weird to me
you can try the exhausting steps of removing code until the error stops happening (or the opposite of starting from nothing and adding code until the error occurs)
✔️ 1
d
@battk if i remove all fieldchanged code it works without error
okay let me try
b
although i dont think it would cause your error, you probably want to rename your location variable
there is a browser global named location that you shouldn't mess with
d
okay I will rename that as well
@battk its still the same