Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
soupaulosilva opened this issue Oct 1, 2023 · 1 comment
Closed

Comments

@soupaulosilva
Copy link

soupaulosilva commented Oct 1, 2023

Using

@module-federation/nextjs-mf: 7.0.8
@module-federation/utilities: 2.0.4
next: 13.4.19
webpack: 5.86.0
typescript: 5.0.3

I created the remote-delegate file exactly the same as sample example in the readme file. When I run in a federated page facing the error

Captura de Tela 2023-10-01 às 12 54 43

I'm using importDelegatedModule and createDelegatedModule from module-federation/utilities

If I do not use a remote-delegate file and add remotes as literal string it works just the first federated page, when I navigate to another I get the error

container initialization failed as it has already been initialized with a different share scope

@ScriptedAlchemy
Copy link
Member

#1268 will resolve all of this. Trying to get a new prerelesse out on "next" tag on npm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants