Questions tagged [angular-compiler-cli]

71 questions
1
vote
0 answers

How I can convert TypeScript to JavaScript with @type angular compiler cli manually

I want to run ngc (angular compiler-CLI) manually to convert TypeScript to JavaScript code. package.json { "name": "first-angular2", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test…
1
vote
0 answers

ReferenceError X (ViewChild ) is not defined when compile with AoT

When I compile without AoT all is fine, but when compile with AoT I get this error ReferenceError: nameColumnHeader is not defined I declared my ViewChild inside .ts file and inside .html file I set local variable like this
istiti
  • 141
  • 1
  • 11
1
vote
0 answers

ViewChild not find and bundle bigger when compile using AoT

ViewChild aren't find using AoT After get a 3th party lib support AoT, I succeed to compile with ngc no error on compilation! I inject this 3th party lib into my project, so my project compile with CLI using --aot flag and no error during…
istiti
  • 141
  • 1
  • 11
1
vote
1 answer

angular directive compiler fired ng-click twice

I am using accordion directive in my template, and inside accordion i am adding attr ng-click on a element. When I click on that element it fires twice. Fiddle : http://jsfiddle.net/Lvc0u55v/10071/ Code : //accordion…
0
votes
1 answer

Angular compiler-cli error: Namespace 'ts' has no exported member 'ResolutionMode'

I am developing a web application with Angular 16 in Webstorm. The web application is currently pre-release and only has a small portion of minimum functionality completed. I was editing with ng serve running testing changes as I made them when…
CodeWarrior
  • 7,388
  • 7
  • 51
  • 78
0
votes
0 answers

The requested module does not provide named export for transformAll, THIS_EXPR from @angular/compiler

I am working on a migration project. Need to migrate from angular 7 to angular latest. I see angular/cli 16 is the latest version. Few named exports are not found by the angular compiler for below. I searched in google, I couldn't any alternative…
0
votes
1 answer

angular/compiler-cli peer dependencies

I've tried a lot to fix this problem, but I can't find any solution. This is the error: npm ERR! While resolving: @angular-devkit/build-angular@14.2.4 npm ERR! Found: @angular/compiler-cli@12.2.16 npm ERR! node_modules/@angular/compiler-cli npm ERR!…
user19383419
0
votes
3 answers

Getting "An unhandled exception occurred: Cannot find module '@angular/compiler-cli' when trying to run "ng serve"

[enter image description here][1] [1]: https://i.stack.imgur.com/axbtO.png Getting "An unhandled exception occurred: Cannot find module '@angular/compiler-cli' when trying to run "ng serve" Error I am getting PS D:\Study\PoolCarz> ng serve An…
0
votes
1 answer

Issue with installing angular compiler

I have been spending hours trying to figure out what is wrong with trying to run an angular based project. node version: v12.16.1 In my project directory I did npm install -g @angular/cli@8.3.26 Once this was done, when I typed the command ng…
Py_Mel
  • 85
  • 4
  • 12
0
votes
2 answers

Error thrown during publishing dotnet core app

I'm trying to publish a dotnet core 2.2 app with angular. During the publishing I get following error: Version of @angular/compiler-cli needs to be 2.3.1 or greater. Current version is "7.2.15" I've tried to fix the version, running npm install…
RBull
  • 41
  • 1
  • 4
0
votes
1 answer

Angular 6, ngc, AOT, Angular Router, router.ngfactory and SystemJS

I have a simple angular 6 application I am trying to get compiled with AOT. I am NOT using the Angular CLI. I have a custom generator that scaffolds my project start and scaffolds my components, services, etc. Everything works as expected pre-AOT.…
0
votes
1 answer

Angular component input static typing

I have 2 angular components. ButtonComponent that has an input of type ButtonText @Component({ selector: 'app-button', template: '

', }) export class ButtonComponent { @Input() text: ButtonText; } export class ButtonText { …
0
votes
1 answer

Angular5 app conditionally load script and styling according to component

My angular application consist of 2 parts based on public and private pages: 1- Landing Page (Before Login) 2- Dashbaord and other Pages (For Authorized User) Landing page component contain signup/login functionality and some other static html…
0
votes
0 answers

Angular AOT & Rollup [!] Error: Unexpected token

I'm following https://angular.io/guide/aot-compiler tutorial, everything goes fine till rollup section. When i run: "node_modules/.bin/rollup" -c rollup-config.js I get those errors: The following options have been renamed — please update your…
0
votes
1 answer

How to deal with a npm package whose AOT compilation fails

I am a complete newbee to web development, and now I am facing a problem that I do not know how to deal with. I am using the npm package named @uniprank/ngx-file-uploader (https://www.npmjs.com/package/@uniprank/ngx-file-uploader) in my web…
GLR
  • 1,070
  • 1
  • 11
  • 29