Skip to content

Uncaught TypeError: Cannot read properties of undefined (reading 'call') #15582

@rmjwilbur

Description

@rmjwilbur

Bug report

What is the current behavior?
Can't have same package.json name on host and remote. Getting error at some point using module federation, guessing when splitChunks kicks in.

If the current behavior is a bug, please provide the steps to reproduce.
Set host's and remote's name in package.json to same value. Try to load a remote page large enough to trigger splitting chunks (again guessing).

What is the expected behavior?
Should not result in error, or, provides a better error message

Other relevant information:

I'm fine for now. Hope this helps someone else struggling with this error.

webpack version:
Node.js version:
Operating System:
Additional tools:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions