has anyone seen this error before? `TypeError: Can...
# suitescript
k
has anyone seen this error before?
TypeError: Cannot read property 'RENAME_TO_UNIQUE' of undefined [at Object.getInputData
i have a 2.1 M/R script that is referencing the enum
file.ConflictResolution.RENAME_TO_UNIQUE
when i copy a file, but
file.ConflictResolution
is undefined
s
file.NameConflictResolution
double check your enum
🙌 1
to be fair, the example code on that page uses
file.ConflictResolution
so there's that
k
i also use
@hitc/netsuite-types
for typescript, which the types tailor toward version 2.0 only