Skip to content

Type registry not working as previously  #3

@erkie

Description

@erkie

In our Ember project, our model definitions were followed by:

declare module "ember-data" {
  interface ModelRegistry {
     "user": User;
   }
 }

With this, and the steps for setup outlined in README.md, @belongsTo and @hasMany relation lookups stopped working. After switching to:

declare module "@ember-data/types/registries/model" {
  export default interface ModelRegistry {
     "user": User;
   }
 }

It started working again. Not sure if I screwed anything up or why this was working previously but not now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions