by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 18 2019 18:50
    @StephenFluin banned @piotr-mamenas
  • Jan 31 2019 21:54
  • Jan 31 2019 21:40
    gurkn starred angular/angular-cli
  • Jan 31 2019 21:04
    alan-agius4 closed #13561
  • Jan 31 2019 20:43
    ZBAGI edited #13561
  • Jan 31 2019 20:06
    ZBAGI edited #13561
  • Jan 31 2019 18:45
    ZBAGI edited #13561
  • Jan 31 2019 18:41
    ZBAGI opened #13561
  • Jan 31 2019 18:01
  • Jan 31 2019 17:36
  • Jan 31 2019 16:39
    ngbot[bot] milestoned #13559
  • Jan 31 2019 16:39
    alan-agius4 labeled #13559
  • Jan 31 2019 16:39
    alan-agius4 labeled #13559
  • Jan 31 2019 16:39
    alan-agius4 labeled #13559
  • Jan 31 2019 16:34
    mgechev closed #8626
  • Jan 31 2019 16:03
    sharp0111 starred angular/angular-cli
  • Jan 31 2019 15:55
  • Jan 31 2019 15:51
    clydin unlabeled #13548
  • Jan 31 2019 15:51
    clydin labeled #13548
  • Jan 31 2019 15:35
    clydin review_requested #13548
Carlos Mantilla
@ceoaliongroo

Hi
I created a custom library in Angular 8.2.14, and import in application with angular 8.2.14 enableIvy: true
The custom library module have missing the ngModuleDef as application in ivy don't work fine

similar issue:
angular/angular#33373

i missing something in the configuration to compile the library with ivy support?
Stephen Adams
@Stephenradams
Hi I'm trying to build the Angular CLI locally, but when I run this command yarn build --local I get this error message, Error: Cannot find module 'debug' from the internal/modules/cjs/loader.js line 638.
Has anyone had this similar error, I'm trying to find the answer on the GitHub site, but i can't see anything. I've checked my version of Yarn and I'm running v.1.2.2. the stable version. so i'm not sure how to get this running.
Karol Karwacki
@karwank
Hi guys, I have a question about Ivy, Jit and Aot option. I'm working on application with SSR. Additionaly it should be able to receive custom html from the database to PageComponent. PageComponent should render custom dynamic Component and display it on <ng-container #custom></ng-container>. This html may containg TemplateModule selectors like <app-template-map> and be able to render it. So I need to create dynamic components. I'm able to do it on server side:
   const tmpComponent = Component({
      template: template,
      styles: [style]
    })(class {
      constructor() {}
    });
    const tmpModule = NgModule({
      declarations: [
        tmpComponent
      ],
      imports: [
        SharedModule,
        TemplateModule
      ]
    })(class {});

    this.compiler.compileModuleAndAllComponentsAsync(tmpModule).then((factories) => {
      const componentFactory = factories.componentFactories[0];
      const componentRef = this.custom.createComponent(componentFactory);
    })
my question is: is IVY working on browser side either? do I need to use JIT to achieve the same on browser side?
Ayyash
@ayyash
@MattHubbell i do, i use routes instead of modules and I place them in one folder, because experience has taught me when I want to deal with routes, I usually want to see all routes in one place, rather than a specific module route. for example that is.
Brijesh Borad
@brijeshborad

Hello Guys
I am developing a multi-tenant system in Angular 9 and we have different environments for each tenant. So I need to generate build for different environments of different tenants.
For ex:
ng build --prod --tenant=T1
ng build --configuraton=uat --tenant=T1
ng build --prod --tenant=T2
ng build --configuraton=uat --tenant=T2

I have already set up different configuration files for different tenants. I need to take this tenant name from command line arguments into code and apply configuration based on it. Is there any way to accomplish this kind of integration?
Any suggestions are welcomed.
Thanks

Kyle Cannon
@kylecannon
I think you should use the environment file ya?
Brijesh Borad
@brijeshborad
@kylecannon I have already separate environment files but we have different environments for different tenants. Each tenant has UAT and PROD environments.
MattHubbell
@MattHubbell
@ayyash do you group your components into one module? Do you build a core module and a feature module?
Kyle Cannon
@kylecannon
@brijeshborad use environments still make your environment $TENANT-$ENV
Ayyash
@ayyash
@MattHubbell multiple feature modules, the core is preserved for services and shared components
MattHubbell
@MattHubbell
Thanks @ayyash
Alexander Escamilla
@alexesca
What is angular-cli built with? https://oclif.io/
I know heroku-cli is built with https://oclif.io/
Tom
@tomreinartz90
Hi all,
I am creating a custom angular cli builder and i am wondering if it is possible to run "scheduleTarget" with a custom sourceRoot or with the result of my current builder.
Reason is that we need the html to be validated / inlined before we extract i18n or build production with i18n.
Leonard Brünings
@leonard84
Hi according to https://blog.ninja-squad.com/2019/05/29/angular-cli-8.0/ angular-cli supports pnpm, since version 8. Is there something to do to make it work, for me it still tries to use npm during ng update and fails as expected. Project uses 8.3.26 and global Angular CLI version is 9.1.4
Carlos Mantilla
@ceoaliongroo
Anthony Price
@Sevensnake
hello everyone
Vvgupta
@Vvgupta
after running "ng serve", this error is coming: An unhandled exception occurred: Cannot find module '@angular/compiler-cli'. I have tried $ npm install --save-dev @angular/cli@latest
but still the error is there. Help!
Tom
@tomreinartz90
@Vvgupta try removing node_modules and all of its contents and also package-lock.json from your project
then run npm install again.
Leonard Brünings
@leonard84
@ceoaliongroo yes I did and it fails on the ng update @angular/core@8 @angular/cli@8 call with the above problem
Ayyash
@ayyash
@leonard84 remove the nodemodules and then npm install, not ng update, tried that?
Leonard Brünings
@leonard84
manual updating works, but you don't get the automated refactorings
I just wanted to point out that the pnpm support doesn't seem to be working
poosridha
@poosridha
Hi I need help to add an icon such that if somebody hovers on it the text is shown
Im using Angular V 8
Ayyash
@ayyash
@poosridha erm, title? just title attribute
banighosh
@banighosh
I'm a student developer working on my first project. Can someone help me with some coding related issues?
Ayyash
@ayyash
@banighosh you have to be more specific and share code samples, we're not going to do your homework for you :)
Nouranology
@NouranMahmoud
Hi guys, I am working on our custom schematics based on angular schematics, I am trying to add disclaimers (comments) in specific lines in the code files, do we have a utility that enables us inserting to specific file lines? What I found so far is the ability to use insertLeft and insertRight for UpdateRecorderBase but both accept index as a parameter. Also, ts-morph has insertText for manipulating a source file but also using index.
Kyle Cannon
@kylecannon
@NouranMahmoud you'll probably need to use the typescript API for that. You can look at ngrx schematics for some ideas
brayn098
@brayn098
hey gays i create two leaflet map in a different component but the second map doesn't load correctly
btw i already declared leaflet css
any solution
Rajvi
@khatrirajvi_twitter
Hello. Does anyone know how to send data from one component to another which have lazy loading in them?
brayn098
@brayn098
@khatrirajvi_twitter hey you can use EventEmitter to communicate between two component and pass data
Derek
@derekkite
@khatrirajvi_twitter a service provided at root is accessible from lazy loaded modules
Rajvi
@khatrirajvi_twitter
Thanks for the help :)
Solved it
Ayyash
@ayyash
@brayn098 share some code to see how ur creating two maps... I remember leaflet had an issue of syncing, and the only way to fix it was using leafletMapReady event to sort of force resize the map a bit (by a pixel)
something like this
 setTimeout(() => {
            // to make it properly show
            this.cd.detectChanges();
        });
balteo
@balteo

I am trying to perform a ng update and it seems to fail silently without updating my package.json...

> XXX@4.127.0 ng C:\git\XXX
> node --max_old_space_size=5120 ./node_modules/@angular/cli/bin/ng "update"
Using package manager: 'npm'
Collecting installed dependencies...
Found 68 dependencies.
    request to https://registry.npmjs.org/@angular-devkit%2fbuild-ng-packagr failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org
    request to https://registry.npmjs.org/@angular-devkit%2fbuild-angular failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org
    request to https://registry.npmjs.org/@angular%2fcli failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org
...
    We analyzed your package.json and everything seems to be in order. Good work!
npm info lifecycle design-system@4.127.0~postng: design-system@4.127.0
npm timing npm Completed in 42942ms
npm info ok

Here is my npm configuration:

registry=https://nexus-xxx-ci.dev.xxx/nexus/repository/npm-all/
strict-ssl=false
...
scripts-prepend-node-path=true
always-auth=true
optional=false
_auth=XXXXX

Can someone please help? It seems ng update doesn't pick up our company npm registry and unfortunately I can't use the official public npm registry directly.

Kyle Cannon
@kylecannon
That's odd... it works for us. Did you try putting that .npmrc inside your project root?
balteo
@balteo

That's odd... it works for us. Did you try putting that .npmrc inside your project root?

Thanks for your reply. No I haven't tried putting the .nmprc file inside the project root but I definitely know it is picked up and used because when I change the registry=... for the public one, the ng update is in error.

Does anyone has any clue what these lines mean ?
    request to https://registry.npmjs.org/@angular-devkit%2fbuild-angular failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org
...
Kyle Cannon
@kylecannon
Try dropping it in the root and see what happens.
Interesting though that this is on Windows... so that might be it? Not sure.
balteo
@balteo
@kylecannon Thanks a bunch!! I dropped the .npmrc file into the project root and it now works! And yes I am running Windows indeed.
Kyle Cannon
@kylecannon
👍