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
I am attempting to consume types from a remote Next.js application, that has this plugin configured correctly for WebPack and is server @mf-types.zip. The consumer is a Vite based React app, which also has this plugin set up. However, my federation plugin remote configuration has an object defined instead of a string for the entry in order to change the type etc.
When running the Vite dev server, you'll get the following error in this case:
TypeError: t.split is not a function
at k
This is because of lines 9-12 in ./src/configurations/hostPlugin.ts:
Describe the bug
I am attempting to consume types from a remote Next.js application, that has this plugin configured correctly for WebPack and is server
@mf-types.zip
. The consumer is a Vite based React app, which also has this plugin set up. However, my federation plugin remote configuration has an object defined instead of a string for the entry in order to change thetype
etc.When running the Vite dev server, you'll get the following error in this case:
This is because of lines 9-12 in
./src/configurations/hostPlugin.ts
:I recommend the following fix:
Reproduction
https://codesandbox.io/p/sandbox/runtime-sea-56pdkd
Used Package Manager
pnpm
System Info
Validations
The text was updated successfully, but these errors were encountered: