micro-frontends-demo / browse Goto Github PK
View Code? Open in Web Editor NEWA micro frontend for browsing restaurants
A micro frontend for browsing restaurants
Hi guys- I've tried to run each individual application but I was not successful. I've tried node version: 10, 12 and 14 and they all have the same issue below. Also, how does the application know to run in the "container" element? How does the public folder gets wired with the rest of the application?
Hi, Cam Jackson
when i run your demo code, an error reported on my Chrome browser:
ReferenceError: React is not defined
react
/Users/hedongjie/Desktop/developer/micro-frontends/container-master/external "React":1
> 1 | module.exports = React;
View compiled
__webpack_require__
/Users/hedongjie/Desktop/developer/micro-frontends/container-master/webpack/bootstrap:723
720 | };
721 |
722 | // Execute the module function
> 723 | modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));
| ^ 724 |
725 | // Flag the module as loaded
726 | module.l = true;
View compiled
fn
http://localhost:3000/static/js/bundle.js:101:20
98 | /******/ );
99 | /******/ hotCurrentParents = [];
100 | /******/ }
> 101 | /******/ return __webpack_require__(request);
| ^ 102 | /******/ };
103 | /******/ var ObjectFactory = function ObjectFactory(name) {
104 | /******/ return {
View source
Module../src/index.js
http://localhost:3000/static/js/bundle.js:23632:63
i'm a green hand of frontends, any suggests for this issue?
OS: macOS catalina(Darwin)
Node version: 12.14.0
npm version: 6.13.4
thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.