Skip to content

Any Effective method to show pdf in theia ide browser mode? #14562

Answered by msujew
wss29 asked this question in Q&A
Discussion options

You must be logged in to vote

You will need to make TypeScript ignore the error. See also:

this.worker = new Worker(new URL('./worker/worker-main',
// @ts-expect-error (TS1343)
// We compile to CommonJS but `import.meta` is still available in the browser
import.meta.url));

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@wss29
Comment options

@msujew
Comment options

Answer selected by wss29
@wss29
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants