2020-11-17
2193
#react
Diogo Souza
29027
Nov 17, 2020 â‹… 7 min read

Creating micro-frontend apps with single-spa

Diogo Souza Brazilian dev. Creator of altaluna.com.br

Recent posts:

Rxjs Adoption Guide: Overview, Examples, And Alternatives

RxJS adoption guide: Overview, examples, and alternatives

Get to know RxJS features, benefits, and more to help you understand what it is, how it works, and why you should use it.

Emmanuel Odioko
Jul 26, 2024 â‹… 13 min read
Decoupling Monoliths Into Microservices With Feature Flags

Decoupling monoliths into microservices with feature flags

Explore how to effectively break down a monolithic application into microservices using feature flags and Flagsmith.

Kayode Adeniyi
Jul 25, 2024 â‹… 10 min read
Lots of multi-colored blue and purplish rectangles.

Animating dialog and popover elements with CSS @starting-style

Native dialog and popover elements have their own well-defined roles in modern-day frontend web development. Dialog elements are known to […]

Rahul Chhodde
Jul 24, 2024 â‹… 10 min read
Using Llama Index To Add Personal Data To Large Language Models

Using LlamaIndex to add personal data to LLMs

LlamaIndex provides tools for ingesting, processing, and implementing complex query workflows that combine data access with LLM prompting.

Ukeje Goodness
Jul 23, 2024 â‹… 5 min read
View all posts

5 Replies to "Creating micro-frontend apps with single-spa"

  1. Hi Diogo,

    thank you for this example, but it is not working anymore if following this guide step by step.

    Here is the error I am getting when running apps and going to localhost:9000: resolve.js:12 Uncaught (in promise) Error: Unable to resolve bare specifier ‘@LogRocket/root-config’ – screenshot https://prnt.sc/x8eiu5

    I made everything same way as in your example, even the names of the apps and org, just to be sure. Here is my example code – https://github.com/igorbuts/single-spa-test

    What I noticed in my example comparing to yours (from comment above) that all the libraries which name is starting with webpack- differ in major version. Maybe the made some breaking changes….
    Because If I clone your example – it is working.

    When I try in my example to downgrade libs to the versions of your example I get some new errors.

  2. Hey Igor, that’s really weird.

    I’ve cloned your repo and tried to analyze every single file, comparing it with mine, but nothing was different and yet the error persists.

    Then, I’ve created another one from scratch following the same steps in the article and, this time, was ok.

    I guess something has bugged within the Webpack or config files. Please, try it out too. In another folder, redo the process and let me know if that works.

    Cheers.

  3. @Team, Its really a great work you did it. Thanks for the article. I am having one issue in this. Application setup is fine and working. But every navigation it is reloading the page. I don’t want page reloading when we navigate between any routes. Can you please help me to fix this. Please find the attached video for your reference

Leave a Reply