Angular 19 and Vite throwing error about named export 'injectQuery'

Discussão em 'Angular' iniciado por Mike, Janeiro 27, 2025.

  1. Mike

    Mike Guest

    We are trying to update to angular 19. The app builds and units run fine. But when trying to open app in the browser we are faced with the following:

    Uncaught SyntaxError: The requested module '/@vite/client' does not provide an export named 'injectQuery' (at pdfjs-dist_legacy_build_pdf__mjs.js?v=ebba6358:1:10)


    The error is somehow related to pdfjs-lib. We have it as a dependency and also as a static asset script (needed to change it slightly). The script is included in the build via an entry in angular.json:

    "assets": ["src/favicon.ico", "src/assets"],


    Which makes it available in the browser.

    I am honestly not sure what/how to debug this further.

    Continue reading...

Compartilhe esta Página