Skip to content

when renaming environment.js to environment.cjs, the classic plugin inserts the config-meta as undefined/config/environment #2518

@NullVoxPopuli

Description

@NullVoxPopuli

this seems to be true regardless of package.json, modulePrefix, etc

Output

<meta name="undefined/config/environment" content="%7B%22EmberENV%22%3A%7B%22_APPLICATION_TEMPLATE_WRAPPER%22%3Afalse%2C%22_DEFAULT_ASYNC_OBSERVERS%22%3Atrue%2C%22_JQUERY_INTEGRATION%22%3Afalse%2C%22_TEMPLATE_ONLY_GLIMMER_COMPONENTS%22%3Atrue%7D%7D">

so, this means that config-meta-loader needs to be updated to accomodate:

const config = loadConfigFromMeta('undefined');

however, even then, the environment.cjs is ignored, and the total contents of the config appear to be some default:

Image

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