Skip to content

"Mismatched anonymous define() module: undefined" for modules without "factory" function #803

Closed
@ilplotkin

Description

@ilplotkin

Upgrading to the latest r.js we got "Mismatched anonymous define() module: undefined" message.
We reviewed generated file and discovered that all our modules like define([...]);
(without "factory" function) were generated without an ID.

We use such modules extensively to gather subtrees as single dependence. So far we have to introduce a workaround using onBuildRead callback to insert empty "factory" function for such modules.

The issue (seems) was introduced in 2.1.7 version.

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