Skip to content

[BUG] IoEventContextToken is not exported #503

Closed
@daweedm

Description

Describe the bug

IoEventContextToken is not exported in the public API.

TS2305: Module '"ng-dynamic-component"' has no exported member 'IoEventContextToken'.

The following does not work :

import {IoEventContextToken} from "ng-dynamic-component";

Editor's import autocomplete generate the following instead :

import {IoEventContextToken} from "ng-dynamic-component/lib/io/event-context";

which produces the following error

 Error: Module not found: Error: Package path ./lib/io/event-context is not exported from package /usr/src/app/node_modules/ng-dynamic-component (see exports field in /usr/src/app/node_modules/ng-dynamic-component/package.json)

Expected behavior
IoEventContextToken should be available from the public API and should be able to be imported like this :

import {IoEventContextToken} from "ng-dynamic-component";

Reproduction
N/A

Environment:

  • OS: Debian 12
  • Browser: chrome
  • Library version: 10.6.1
  • Angular version: 15.1.0

Additional context
N/A

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions