Completed
Last Updated: 12 Jul 2022 18:06 by Joshua
Release R1 2021
Jakub Wilk
Created on: 03 Dec 2020 10:30
Type: Bug Report
1
incorrect path for telerikReportViewer.kendo.min in initExtDeps.js upon install of @progress/telerik-angular-report-viewer package

The path for window.kendo in initExpDeps.js is incorrect. This does not always lead to error. When there's an error it can be the following:

Module not found: Error: Can't resolve '.\telerikReportViewer.kendo.min'" in "ERROR in ./node_modules/@progress/telerik-angular-report-viewer/dist/dependencies/initExtDeps.js

2 comments
Joshua
Posted on: 12 Jul 2022 18:06

I was able to work around this by using @angular-builders/custom-webpack and the following configuration in my extra-webpack.config.ts file:

import { Configuration } from 'webpack';

module.exports = async (config: Configuration) => {
    // Make whatever fine-grained changes you need

    config.resolve = { ...config.resolve };

    config.resolve.alias = {
        ...config.resolve.alias,
        // Work around an incorrect require statement in `@progress/telerik-angular-report-viewer` for versions < 12.21.120
        '.\\telerikReportViewer.kendo.min$':
            'node_modules/@progress/telerik-angular-report-viewer/dist/dependencies/telerikReportViewer.kendo.min.js',
    };

    // Return the altered config
    return config;
};
Joshua
Posted on: 11 Jul 2022 18:32
This was finally fixed in @progress/telerik-angular-report-viewer version 12.21.120.