Skip to content

pganster/vite-plugin-federation-react-vite-gallery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React - Vite Federation Issue Demonstration

This example shows the problem of using a library, that builds on React (react-image-gallery), in the remote app. When running the host app, which consumes the remote app, you will receive the error Cannot read properties of null (reading 'useRef'). But when running the remote app directly, this error will not occur.

Running

Install pnpm as per instructions provided here

Run pnpm install, then pnpm run build and pnpm run serve. This will build and serve both host and remote on ports 5000, 5001 respectively.

CTRL + C can only stop the host server. You can run pnpm stop to stop all services.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published