I have to import @angular/localize/init and its dependencies in the index.html file.
Can you help me importing the modules in the root-html-file.
I dont want to import by npm. I want similar to this:
I would try adding import '@angular/localize/init to your main.single-spa.ts file. Angular 9's Ivy Compiler makes it quite hard to load angular libs via script tag.
Hello, After upgrading angular version to 9 and single-spa 5 i get the following error:
The error was caused due to angular 9 version using global
$localize()
function.The solution here: https://stackoverflow.com/questions/57953317/angular-9-introduced-a-global-localize-function-that-needs-to-be-loaded fixes the problem by adding the
import '@angular/localize/init';
to your polyfills.tsAfter reading this: https://single-spa.js.org/docs/ecosystem-angular#polyfills
I have to import @angular/localize/init and its dependencies in the index.html file. Can you help me importing the modules in the root-html-file. I dont want to import by npm. I want similar to this:
<script src='https://unpkg.com/core-js-bundle/minified.js'></script>
Thanks