core icon indicating copy to clipboard operation
core copied to clipboard

Unhandled Runtime Error TypeError: Cannot read properties of undefined (reading 'call')

Open kaamini opened this issue 3 years ago • 10 comments

Error: Unhandled Runtime Error TypeError: Cannot read properties of undefined (reading 'call')

version: nextJs:12.2.5 nextjs-mf:7.0.8

kaamini avatar Sep 15 '23 20:09 kaamini

Try with version 8, it's a beta and not actually breaking change but something in my CI is not working correctly. I went to debug this issue, and the problematic code did not exist on my main branch. So it looks like I already fixed it but was not released

ScriptedAlchemy avatar Sep 16 '23 21:09 ScriptedAlchemy

can you please share the exact beta 8 version to try?

kaamini avatar Sep 18 '23 14:09 kaamini

There should be only one release. So whatever is on "next" tag on npm

ScriptedAlchemy avatar Sep 19 '23 03:09 ScriptedAlchemy

Same issue happend in nextjs-mf:v8.0.0

senuravihanjayadeva avatar Sep 19 '23 04:09 senuravihanjayadeva

I have same issue v7 and v8.

gilverse-icn avatar Sep 19 '23 05:09 gilverse-icn

My remote app is NextJS and Host is a React app. In nextjs-mf v7.0.8 issue is with the next build, dev mode works perfectly fine.

senuravihanjayadeva avatar Sep 19 '23 06:09 senuravihanjayadeva

@senuravihanjayadeva Are you using remote-delegate? And I wonder which one you use 'import from', 'dynamic import' or 'lazy'.

gilverse-icn avatar Sep 19 '23 07:09 gilverse-icn

You can try dynamic remotes, if you bypass all the static import stuff, it might work better.

ScriptedAlchemy avatar Sep 20 '23 01:09 ScriptedAlchemy

Okay #1268 resolves or should resolve any and all module consumption related problems. Thanks to #1224 - I now have absolute control

Specifically this: #1433

ScriptedAlchemy avatar Sep 29 '23 06:09 ScriptedAlchemy

Try next tag on npm

ScriptedAlchemy avatar Oct 05 '23 19:10 ScriptedAlchemy