Closed
Description
Thanks for spending the time to read this issue.
I have read and attempted fixes listed here:
- simple-react-esm React code errors #162
- TypeError: Cannot read properties of undefined (reading 'exports') #122
- Issue with shared react dependency #161
Both host and remote are Vite projects
Versions
"@originjs/vite-plugin-federation": "1.1.4",
Reproduction
Clone this repo https://github.com/philals/reading-exports-issue/
cd into each directory and run npm install && npm run watch
. This will run the container in dev mode (localhost:3000) and the remote served statically on localhost:3001
Confirm working
Uncomment this line: https://github.com/philals/reading-exports-issue/blob/master/app/src/App.tsx#L6
Refresh browser, issue encountered.
Additional Details
Steps to reproduce
Above
What is Expected?
All working
What is actually happening?
Error: Uncaught TypeError: Cannot read properties of undefined (reading 'exports')
Metadata
Metadata
Assignees
Labels
No labels