Skip to content

Application bundle generation error in apps using the root entry point without #16601

@damyanpetev

Description

@damyanpetev

Description

Apps using the root igniteui-angular have a build/runtime error failing to resolve the igniteui-webcomponents import used by the Chat component. That's in its own entry and was intended to be optional, but it seems the re-export from the root entry forces it up for evaluation regardless.

  • igniteui-angular version: 21.0.0
  • browser: N/A

Steps to reproduce

Install (or ng add) igniteui-angular and using any component from the root entry:

import { IgxButtonDirective } from 'igniteui-angular';
 <button igxButton="contained" type="button" class="button">
    Button
  </button>

and run ng build or start.
Repro sample attached below.

Result

There's an error for the Chat's igniteui-webcomponents import:
Image
And on start there's a runtime error:
Image
Though that one I think doesn't do full tree-shaking, so not that surprising.

Expected result

The app should build/run without errors.

Attachments

untitled-app 25_angular-standalone.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions