"Identifier types can only be instantiated as direct child of a model type" #1844
Unanswered
Dukeman330
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've got 2 models:
When I try to compose them with:
const User = types.compose(UserBase, ReadOnlyLogStore).named('User');
and instantiate the model with:
const u = User.create({ id, firstName, lastName });
I get the error:
"Identifier types can only be instantiated as direct child of a model type"
What does this mean? Where do I appear to be instantiating an identifier type? If I leave ReadOnlyLogStore out of the composed User object I'm able to instantiate it without issue.
Beta Was this translation helpful? Give feedback.
All reactions