Skip to content

Error: neo_observable_input__WEBPACK_IMPORTED_MODULE_1__.ObservableInputs is not a constructor #3

@PeterSR

Description

@PeterSR

This might simply be a mistake on my end, but when I try to follow the usage in the readme, I get the following error when the component is instantiated:

ERROR TypeError: neo_observable_input__WEBPACK_IMPORTED_MODULE_1__.ObservableInputs is not a constructor

The stack trace points to the line with

  private readonly inputs = new ObservableInputs();

in my component.

Further investigation showed that ObservableInputs is undefined.
I import it as follows:

import { ObservableInputs } from 'neo-observable-input';

I also tried something like

import * as ObservableInputs from 'neo-observable-input';

which gives me access to the module. It turns out to be {} (and thus accessing ObservableInputs gives undefined).

I am running "@angular/common": "^14.2.0",, "typescript": "~4.7.2" and "webpack": "5.74.0"

Any ideas what might be wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions