Skip to content

ember-data v5.3.4+ compatibility #758

Open
@Windvis

Description

@Windvis

I just updated an app that is using ember-cp-validations to the Ember v5.12 blueprint (coming from v4.12). After the update a runtime error is thrown:

Could not find module `ember-data` imported from `(require)` missingModule`.

Which is imported here:

if (macroCondition(dependencySatisfies('ember-data', '*'))) {
DS = importSync('ember-data').default;
}

I believe this is caused by the fact that ember-data v5.3.4+ is a v2 addon, which requires ember-auto-import v2 and ember-cp-validations doesn't list that as a dependency yet.

If I add ember-auto-import v2 to the dependency list of ember-cp-validations the code seems to work again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions