neo-observable-input
neo-observable-input copied to clipboard
Error: neo_observable_input__WEBPACK_IMPORTED_MODULE_1__.ObservableInputs is not a constructor
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?
This might be the culprit: https://stackoverflow.com/a/50437283