Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI of importmap overrides #119

Open
Ming-Coder-98 opened this issue Oct 2, 2024 · 0 comments
Open

UI of importmap overrides #119

Ming-Coder-98 opened this issue Oct 2, 2024 · 0 comments

Comments

@Ming-Coder-98
Copy link

Hi,

This is my code for my index.ejs file.

<title>Single-Spa Project</title> <script type="systemjs-importmap"> { "imports": { "single-spa": "/local-libs/single-spa/lib/system/single-spa.min.js", "react": "/local-libs/react/umd/react.production.min.js", "react-dom":"/local-libs/react-dom/umd/react-dom.production.min.js", "@tea/root-config": "/tea-root-config.js", "@tea/mainpage": "//localhost:8081/index.js", "@tea/appbar": "//localhost:8080/index.js" } } </script> <script src="/local-libs/import-map-overrides/files/import-map-overrides.js"></script> <script src="/local-libs/systemjs/files/system.min.js"></script> <script src="/local-libs/systemjs/files/extras/amd.min.js"></script> <script> System.import('@tea/root-config'); </script>

After enabling the localstorage to set the devtools to true, i cant see the ui for the import-map-overrides. When i refresh the page, i could see it appear for a millisecond before my mfe renders. If i were to remove my script tag that consist of system.import, the ui will appear. Am i doing anything wrong? Is there a sample configuration page for the index.ejs file implemented with the import-map-overrides that i can refer to? or could somone advise me on the potential reason?

thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant