As I understand the Angular2 concept - it is transpiling TypeScript files to .js files. In principle, it should be possible to compile, package, and then run that Angular2 a
What helped me was,
ng build --prod --base-href ./ in the app route directory and generate the dist/ filesIn the dist/ directory, edit the index.html to remote the type="module" and nomodule defer attributes from the scripts.
Ex:
should be changed to,
Now you should be able to render the index.html file in a browser.