Angular errors - "crypto" and "kanjidate"

Posted by: seaninglis on 11 October 2022, 2:37 am EST

    • Post Options:
    • Link

    Posted 11 October 2022, 2:37 am EST

    We have Angular14 POC app hosting ActiveReportsJS Designer.

    After some small changes we’ve started running out of memory on build, so I cleared and reinstalled, and followed the directions at https://www.grapecity.com/blogs/how-to-add-an-angular-report-viewer-to-your-web-application#install to update the start command.

    But following upgrades, “npm run start” yields the following errors:

    ./node_modules/@grapecity/activereports/lib/node_modules/@grapecity/ar-js-pdf.js:4197:10-27 - Warning: Module not found: Error: Can't resolve 'crypto' in '/home/seani/repos/trublue-reports/node_modules/@grapecity/activereports/lib/node_modules/@grapecity'
    

    and

    ./node_modules/@grapecity/activereports/lib/node_modules/@grapecity/ar-js-pagereport.js:1625:18-36 - Error: export 'default' (imported as 'kanjidate') was not found in 'kanjidate' (possible exports: f1, f10, f11, f12, f13, f14, f2, f3, f4, f5, f6, f7, f8, f9, fSqlDate, fSqlDateTime, format, fromGengou, toGengou, toYoubi)

    any clues what’s happening?

    I tried to attach a zip but it flagged the post as spam.

  • Posted 11 October 2022, 3:21 am EST

    Just to say, if I manually add “kanjidate”: “1.1.3” to package.json, clear everything and reinstall again, I’m still left with a couple of warnings, but I can compiler and test again.

    If the build process “naturally” pulls in v1.2.8, back to breaking errors.

  • Posted 11 October 2022, 7:28 pm EST

    Hello,

    This is a known issue which we are going to provide the fix for within the hotfix that is rolled out this week.

  • Posted 12 October 2022, 7:56 pm EST

    Hello,

    We just released v3.2.1. Please update dependencies in your project.

  • Posted 13 October 2022, 3:48 am EST

    That did it, thanks.

Need extra support?

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

Learn More

Forum Channels