Comments (8)
this is original code: https://github.com/Goyathlay/test-nextjs-mf
from universe.
Could you try using namespaces for the babel plugin in each of your projects?
["styled-components", {
"ssr": true,
"namespace": "shell"
}]
and
["styled-components", {
"ssr": true,
"namespace": "component-kit"
}]
from universe.
Same problem, but with next 11.
It seems to me that the dependencies are not being shared, by the webpack_share_scopes , it is not correct
from universe.
Looks related to the hooks error some are getting
from universe.
The problems seem to be related. Both React and styled components are not being shared between microfronts.
But, expose components is working
from universe.
under the hood i think styled components uses hooks, there is a hook error in your console
from universe.
I can use the sharing of styled-components in the module federation normally, but some warnings occurred in the consumption
It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
from universe.
在引擎盖下,我认为样式组件使用钩子,您的控制台中有一个钩子错误
Have you ever encountered such a situation
It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
在引擎盖下,我认为样式组件使用钩子,您的控制台中有一个钩子错误
from universe.
Related Issues (20)
- Making importRemote in module-federation/utilities more agnostic for Vite/Next.js HOT 2
- Missing release @module-federation/nextjs-mf 5.12.14 HOT 2
- Error: NextJS MFE plugin throws error with experimental app directory enabled HOT 7
- When using importRemote, don't require export to start with ./ HOT 1
- How can we use injectScript to getServersideProps from remotes and enable server side render in Nextjs app HOT 15
- revalidate HOT 2
- utils - 'os' dependency started to be required HOT 6
- NODE: revalidate() doesn't refresh module when a file has been changed and remoteEntry.js is the same. HOT 4
- How to solve remote bundle css files load delay problems? HOT 1
- Bundled `@module-federation/native-federation-typescript` expects `vue-tsc` as required dependency HOT 3
- NextFederationPlugin is not constructor
- App crashing in production build after we deploy something in the child app , gets back to working only if we refresh / hard refresh the page HOT 1
- TypeError: Cannot read properties of undefined (reading 'call') HOT 2
- Is it bad to use singleton everywhere? HOT 3
- [Issue] how to switch from fake remote if the remote get started slower than base app HOT 1
- Question on Fast Refresh Support HOT 2
- Cannot find module in remote components HOT 3
- [native-federation-typescript] Module does not exist in container HOT 7
- FederatedTypesPlugin Get Error with swc-loader HOT 7
- NextFederationPlugin v7 seems to ignore conditional package exports HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from universe.