Comments (5)
next is script, not ESM module, thats the wrong type youre consuming
from universe.
Thank you very much.
I changed the code in the shell to the following:
mfeComponentOptions: WebComponentWrapperOptions = {
type: 'script',
remoteName: 'helloWorld',
remoteEntry: 'http://localhost:4173/_next/static/chunks/remoteEntry.js',
exposedModule: './helloWorld',
elementName: 'helloWorld',
};
This solved the previous errors. But now I see a new one:
from universe.
Next is the worst choice to try and embed into other apps. Use remix or something else. Not next.
from universe.
Angular also uses esm. Next is not esm output.
from universe.
Okay. Yeah I experienced next as pretty difficult choice. I switched to plain react and was able to make it work.
But thank you very much for your help!
from universe.
Related Issues (20)
- Module parse failed: Cannot use 'import.meta' outside a module HOT 3
- Add support for eager "exposed" modules HOT 5
- @module-federation/typescript upgrade from v3.1.1 to v3.1.2 breaks with npm HOT 2
- remoteEntry.js wrongly generated HOT 9
- Getting 500 (Internal Sever Error) with NextJS API route when fired from browser right after server is started in production bundle HOT 7
- @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 4
- Hot reload not working on exposed files HOT 6
- Non-deterministic sourcemaps generated by Module Federation V2 HOT 4
- @module-federation/runtime init method not executing as expected HOT 6
- @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
- remote component error in react when this version different HOT 2
- Add documentation / example for including module federation runtime via CDN in browser script tag
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.