Questions tagged [angular-cli-v9]

46 questions
47
votes
10 answers

angular 9 library publish error "Trying to publish a package that has been compiled by Ivy"

I migrated my angular 8.x.x project to angular 9.x.x and when I try to publish my library, it fails with below error npm ERR! @candiman/website@9.0.0 prepublishOnly: node --eval "console.error('ERROR: Trying to publish a package that has been…
Aniruddha Das
  • 20,520
  • 23
  • 96
  • 132
41
votes
8 answers

Angular 9: Value at position X in the NgModule.imports is not a reference

I upgraded an Angular App from v8 to v9. The project imports a custom UI library using Angular 8 and moment.js. When I build it: It generates a warning: WARNING in Entry point '@myLib/catalogue' contains deep imports into …
Francesco
  • 9,947
  • 7
  • 67
  • 110
29
votes
5 answers

How to import all Angular Material modules in Angular 9

I want to import all angular material modules and use into overall angular project templates.
24
votes
8 answers

Angular9: ERROR in The target entry-point "@angular/fire/auth" has missing dependencies

When I run npm run start I get the below error regarding firebase. Tech: Angular version 9, Firebase, Firestore, Geofirestore Angular CLI. Error: ERROR in The target entry-point "@angular/fire/auth" has missing dependencies: - firebase/auth -…
AngularM
  • 15,982
  • 28
  • 94
  • 169
8
votes
1 answer

es5BrowserSupport by Angular

I have updated my Angular CLI, with version 10.0.5 (globally and locally both) And while I am trying to build my angular project by below command- ng build I am getting below error- Schema validation failed with the following errors: Data path…
sunil
  • 145
  • 1
  • 12
8
votes
2 answers

pre-build script to update config.json based on the environment variable

I have an angular 9 application in which I read the api url from an assets folder: @Injectable() export class ConfigService { private configUrl = '../../../assets/config/config.json'; constructor(private loggerService: LoggerService) { } …
MHOOS
  • 5,146
  • 11
  • 39
  • 74
6
votes
5 answers

Angular 9 : NullInjectorError: No provider for CompilerFactory

Get the message when running the app in browser prod/aot mode. Below is my main-aot.ts Uncaught NullInjectorError: StaticInjectorError(Platform: core)[CompilerFactory]: NullInjectorError: No provider for CompilerFactory! import {…
Rahul Kumar
  • 73
  • 1
  • 9
5
votes
4 answers

Angular 9 with jsPDF module : Type 'typeof jsPDF' has no construct signatures

Angular 9 Module which has issue jsPDF (installed types + packages itself) When doing ng serve it works When doing ng build --prod , it has errors ERROR in src/app/xxx/xxxx.componentomponent.ts:52:27 - error TS2351: This expression is not…
Vladyslav Didenko
  • 1,352
  • 1
  • 14
  • 19
5
votes
1 answer

Angular Error on `ngcc --properties es2015 browser module main --first-only --create-ivy-entry-points`

I've recently updated my Angular project from 8 to 9. It worked fine on my machine. I tried copying the files and assembling them on another device. While doing npm install I am getting the following error. I tried removing package.lock.json and…
VinoPravin
  • 947
  • 3
  • 17
  • 32
4
votes
2 answers

Angular error: newTree.optimize is not a function

I recently started getting this error when attempting to create a new component using the angular CLI: newTree.optimize is not a function the issued command was: ng g c test Googling return only articles from Angular CLI v6.x I have tried…
Kevin192291
  • 1,925
  • 4
  • 26
  • 43
3
votes
1 answer

ERROR Error: Angular JIT compilation failed: '@angular/compiler' not loaded

The Error I got suddenly while running my app in a development environment using VSCode, main.js:7740 ERROR Error: Angular JIT compilation failed: '@angular/compiler' not loaded! - JIT compilation is discouraged for production use-cases!…
3
votes
0 answers

How to use file replacements in Angular 10

I am working on a project, and as far as I can tell; when running "ng run build --prod" the file replacements are not working. This is important as I want to remove the NgRx devtools when putting the application into production. Otherwise it runs…
3
votes
1 answer

How to add subresources integrity with Angular appShell build

I built an application with Angular CLI 9. I patched the package.json file with : { "scripts": { "build:prod": "ng build --prod --subresource-integrity", "prebuild:prod": "TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\"}' ts-node…
Doubidou
  • 1,573
  • 3
  • 18
  • 35
2
votes
0 answers

Angular Library Debugging - WebStorm

We have created our own angular library and published those artifacts in AWS CodeArtifact. Those 2 artifacts we are importing into another project.I would like to debug those 2 libraries and want to add breakpoint, what's the best solution for this.…
Rakesh
  • 177
  • 2
  • 14
2
votes
0 answers

ERROR in document is not defined in angular 9

document.querySelector('.pcoded-inner-navbar').classList.add('scroll-sidebar'); I comment all code related to documment but till when I try to build using ng build I found ERROR in document is not defined. plz help
Amol
  • 29
  • 3
1
2 3 4