Skip to content

PDF.js viewer broken in 0.1.231 — Failed to resolve module specifier "deepmerge" #339

Description

@san6183

After updating to 0.1.231, the built-in PDF.js viewer no longer works. The PDF opens, but the translation tooltip feature is completely non-functional.

The browser console shows this error on viewer.html:

viewer.html?file=/pdf_demo.pdf:1 Uncaught TypeError:
Failed to resolve module specifier "deepmerge".
Relative references must start with either "/", "./", or "../".

It looks like deepmerge is being imported as a bare module specifier in the viewer bundle, which the browser's native ES module loader can't resolve. This seems to be a build/bundling regression introduced in 0.1.231 — it was working fine in 0.1.230.

  • OS: Windows 11
  • Browser: Brave / Chrome
  • Extension version: 0.1.231
  • Use case: local PDF (file://) translation, English/German → Korean

Could you check the viewer build config for 0.1.231? Thanks for maintaining this extension.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions