[Question]: We are getting error: Uncaught SyntaxError: Unexpected token 'export' and Uncaught SyntaxError: await is only valid in async functions and the top level bodies of modules #17994
Unanswered
ShikeChen-MS
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Configuration:
We are trying to use PDF.JS for our services for our PDF viewing function, due to implementation restriction we uses following way to load pdf.js
and we are limited to use a plain .js file (not a module) to load pdf report as follows (we are using iframe to embbed it in our webpage)
When we trying the latest (we tried directly build from main branch), we get following error:
Anyone could please help with some guidance on how to deal with these 2 errors?
Thanks a lot
Beta Was this translation helpful? Give feedback.
All reactions