Skip to content

App won't boot, accessing import which doesn't exist, 'ember' #925

@NullVoxPopuli

Description

@NullVoxPopuli
Uncaught ReferenceError: Ember is not defined

This code:
image

Repro:

Here is the code to fix:

var _Ember = require.has('ember') ? require('ember').default : Ember;

The questions:

  • for Ember that no longer provides global Ember, v4+, how should it be referenced?
    • all the AMD stuff is private API
    • Providing "The Ember global" is too much api surface area, because the above code doesn't need access to all that much

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