Hi! Anyone has tried importing PDF.js module in Su...
# suitescript
j
Hi! Anyone has tried importing PDF.js module in SuiteScript? I'm getting error
{"type":"error.SuiteScriptModuleLoaderError","name":"UNEXPECTED_ERROR","message":"missing : after property id (/SuiteScripts/TEST/build/pdf.js#343)","stack":[]}
when trying to add the module. Thanks! 😄
s
Check line
343
in your file, something seems wrong with the file itself
j
@Sandii pdf.js is from https://mozilla.github.io/pdf.js/ it's a third-party library I'm importing on my Suitelet. I'm thinking about doing something like this *Using* TBA Oauth 1.0 with SuiteScript 2.0 where oauth.js and cryptojs.js is used. Thank you!
b
fair chance that anything resembling modern javascript code requires suitescript 2.1
👀 1
j
Will try this in suitescript 2.1 😄 Thanks for your inputs @battk @Sandii