You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a component that I'm exposing as a federated module using NextJS.
I can use other components in this model in a project with the ModernJS framework, but this specific component uses useRouter to get query parameters.
And whenever it's used, I get this error
TypeError: Cannot read properties of undefined (reading '0')
How can I make my ModernJS project understand the NextJS federated component in this case?
(if I remove the use of useRouter, the component works but I need to get the query params so I can't remove it)
Beta Was this translation helpful? Give feedback.
All reactions