Giter VIP home page Giter VIP logo

angular__core's Introduction

angular__core's People

Contributors

arturovt avatar joeldenning avatar renovate[bot] avatar themcmurder avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

angular__core's Issues

StaticInjectorError when loading via systemJS import-map

I want to share common dependencies in a micro-frontend project using single-spa/single-spa-angular. When trying to share @esm-bundle/angular__core, the console shows the following error:

grafik

MWE: https://github.com/SebastianOltmanns/singlespa-angular-core-share-dep

My minimal working example has three projects:

  • root, the root-config, where the systemJS import-map is loaded and the micro-frontend services are loaded
  • p1, basic angular example project, where @angular/core is externalized
  • p2, basic angular example project, where @angular/core is included

When running all three projects, visiting p1 gives the error shown above, but visiting p2 works. The literal only difference in p1 and p2 is in externalizing the @angular/core library, and instead using @esm-bundle/angular__core. This is why I open this issue here, because I think it has to do with this project.

Thanks for any help or investigations!

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Warning

These dependencies are deprecated:

Datasource Name Replacement PR?
npm rollup-plugin-terser Available

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/build-and-test.yml
  • actions/checkout v4
  • actions/setup-node v4
  • pnpm/action-setup v4.0.0
  • actions/checkout v4
  • actions/setup-node v4
  • pnpm/action-setup v4.0.0
npm
package.json
  • @angular/compiler 16.0.5
  • @angular/compiler-cli 16.0.5
  • @angular/core 16.0.5
  • concurrently 8.2.2
  • esm-bundle-scripts 1.2.0
  • husky 9.1.4
  • karma 6.4.4
  • karma-firefox-launcher 2.1.3
  • karma-jasmine 5.1.0
  • patch-package 8.0.0
  • pinst 3.0.0
  • prettier 2.8.8
  • pretty-quick 4.0.0
  • release-it 17.6.0
  • release-it-plugin-esm-bundle 3.0.0
  • rimraf 6.0.1
  • rollup 2.79.1
  • rollup-plugin-terser 7.0.2
  • rxjs 7.8.1
  • typescript 5.5.4
  • terser 5.31.6
nvm
.nvmrc

  • Check this box to trigger a request for Renovate to run again on this repository

v11.0.0

Can you add version 11.0.0 as a release?

v12 bundle does not include __POST_R3__ functions

I'm trying to make some of the @angular/* packages external. I use Angular v12 + Ivy, so it looks like I'm supposed to use this bundle:
https://unpkg.com/@esm-bundle/[email protected]/system/es2015/ivy/angular-core.js

but I'm constantly getting "No provider for CompilerFactory!" errors.
When I looked at the core bundle I found that it uses PRE_R3 functions instead of POST_R3.

as for CompilerFactory:
let compileNgModuleFactory = compileNgModuleFactory__PRE_R3__;

It's interesting that on v11 the same core bundle uses POST_R3
var compileNgModuleFactory = compileNgModuleFactory__POST_R3__;

Shouldn't it always include POST_R3?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.