Skip to content

Module not found: Error: @ember/test-helpers is trying to import from @ember/-internals but that is not one of its explicit dependencies #1481

@mkszepp

Description

@mkszepp

After upgrade to @ember/test-helpers to v4 the addon embroider-safe test is running into this error (see CI error)

Module not found: Error: @ember/test-helpers is trying to import from @ember/-internals but that is not one of its explicit dependencies

The only usecase is here:

if (macroCondition(dependencySatisfies('ember-source', '>=4.5.0-beta.1'))) {
//@ts-ignore
renderSettled = importSync('@ember/renderer').renderSettled;
} else {
//@ts-ignore
renderSettled = importSync('@ember/-internals/glimmer').renderSettled;
}

It looks like the macroCondition brings a false instead of true...

Maybe the problem is that test-helpers doesn't have ember-source as peerDependency?

The test-app is using ember-source v5.10. I can also reproduce it with v5.11

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