Cannot find module 'i18next'

Posted by: gmattingly on 20 April 2023, 6:38 am EST

  • Posted 20 April 2023, 6:38 am EST - Updated 21 April 2023, 1:18 am EST

    Will the GcPdfViewer work with older versions of angular? Like 9 or 10 ?

    I’m trying to use it with an existing app and still getting this error:

    ERROR in node_modules/@grapecity/gcpdfviewer/typings/Dialogs/ProgressDialog.d.ts:36:25 - error TS2307: Cannot find module ‘i18next’ or its corresponding type declarations.

    36 get in17n(): import(“i18next”).i18n;

    Thanks in advance for your help!

  • Posted 20 April 2023, 3:57 pm EST

    Hi,

    First of all the correct Blog link is:

    https://www.grapecity.com/blogs/how-to-load-and-view-pdf-files-in-an-angular-application

    The GcPdfViewer should work with the latest angular versions. Please refer to the demo sample:

    https://www.grapecity.com/documents-api-pdfviewer/demos/reference-samples/Angular/angular-example/angular

    Please also find the attached Angular App using GcPdfViewer.

    Regards,

    Manish Gupta

    Pdf_Viewer_Ng13.zip

  • Posted 24 April 2023, 3:15 am EST

    Sorry, but your answer is unclear … are you saying the GrapeCity libraries do not work with older versions of Angular?

  • Posted 24 April 2023, 10:28 pm EST

    Hi,

    We are sorry for the inconvenience but we are not sure about this since we have tested this with the Angular 13.

    In your case, please specify the Angular version and GcPdfViewer version you are using. Also sharing a dummy sample would be a great help.

    We would investigate the sample at our end and will let you update accordingly.

    Regards,

    Manish Gupta

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels