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)
- @module-federation v2 runtime plugin - beforePreloadRemote args wrongly typed HOT 5
- @module-federation v2 runtime plugin - remoteEntry import HOT 5
- Duplicate network request for same chunk in MF-V2 HOT 12
- RemoteEntry file size increased by ~7x HOT 8
- Hot reload not working on exposed files HOT 7
- Non-deterministic sourcemaps generated by Module Federation V2 HOT 4
- @module-federation/runtime init method not executing as expected HOT 9
- @module-federation/runtime loadRemote - Cannot define property Symbol(mf_module_id) HOT 5
- When modifying files (occasionally) or rsbuild.config.ts (must be), the generated product has problems HOT 2
- file not found error HOT 1
- Optimizing the problem of overly long identifiers of the container entry module of the issuerPath in the stats.json file HOT 2
- @module-federation/native-federation-typescript - support destination folder, loadRemote typings and other improvements HOT 7
- Type file missing when using vue-tsc HOT 1
- remote component error in react when this version different HOT 5
- Add documentation / example for including module federation runtime via CDN in browser script tag HOT 4
- Module Federation not working with Content Security Policy (CSP) HOT 9
- getPublicPath or publicPath is not part of ModuleFederationPluginOptions HOT 5
- @mf-types. expose typings for shared modules HOT 1
- Infer shared modules based from the host's manifest file. HOT 2
- Duplicate network request for chunk from multiple entryfiles HOT 4
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.