60 questions
1
vote
3
answers
1k
views
Angular modules are not taking global styles and scss variables
In my angular app i have src/styles.scss
@import "./styles/fonts";
@import "./styles/variables.scss";
and in src/styls/variables.scss
$color-brand-darker: #2d323e;
$color-brand-...
0
votes
1
answer
668
views
configuring custom path for ngcc in angular project
I am having a requirement where node_modules required for a project are already installed and stored somewhere.
And we are running multiple instances of the angular project each inside a separate ...
2
votes
1
answer
4k
views
How to cast event to return HttpEventType.Response when subscribe data?
I work on angular 8 I face issue I can't cast event to return HttpEventType.Response
when subscribe data
to get progress bar upload
component service
PostUpload(selectedoptionsId, file)
{
const ...
0
votes
1
answer
428
views
Office Word Addin with Angular CLI 8.2 - Getting Unhandled Navigation Error
I am trying to run a simple application in Office word add-in that I have built using Angular CLI 8.2. This application has a home page with a link. That link should route to another component. ...
1
vote
1
answer
2k
views
Angular 8 application accessing proxied Spring Boot application on localhost over https
I have written a Spring Boot backend and an Angular 8 frontend that I am packaging together. So when deployed, both use the same port and this works nicely.
During develpoment, I want both ...
1
vote
1
answer
793
views
getMac npm angular cli
I have install this:
npm install --save getmac
and insert in my home.components.ts this code
import getMAC, { isMAC } from 'getmac';
and in ngOnInit this code text:
console.log(getMAC());
The ...
0
votes
3
answers
8k
views
How to create Angular 8 project using Angular CLI 9
I'm using Angular CLI 9.1.1 but need to create a project with Angular 8.
I also have other projects using Angular 9, so I don't want to install Angular 8 CLI globally.
Is there any option to create an ...
0
votes
1
answer
3k
views
Angular Formly Forms - removing add/remove buttons from array type
I've got an issue trying to remove/disable buttons from a customized array component I use with Formly Forms when generating dynamic forms using a JSON schema (draft 7). I've tried various things to ...
4
votes
3
answers
14k
views
Find a way to change Node Version
I have Node:13.5.0 version but it is not compatible with Angular CLI 8.3.21 version. So I want to get back to the Node 12. version.
1
vote
1
answer
2k
views
Angular CLI 8 - Formly custom select for JSON schema (draft 4)
I've got some difficulties getting my JSON schema (draft 4) to fully work with Angular-Formly forms custom templates. I've made several templates for various data types and I'm stuck with a template ...
0
votes
1
answer
788
views
Error: EPERM: operation not permitted in Bitbucket pipeline
While building ng build I am getting this error in Bitbucket. I am using Firebase as my backend. What am I doing wrong?
EPERM: operation not permitted, lchown '/opt/atlassian/pipelines/agent/build/...
0
votes
0
answers
255
views
Error when a Angular 8 Library is used as a npm package
I have built a angular 8 library that compiles perfectly and I can pack it with npm pack command to use it in other project as a npm package. When I use that library in other project I can serve it or ...
-1
votes
1
answer
227
views
angular 8 prod mode import then catch throws compiler not found error
java spring 5, Angular 8+ with Cli 8+
I have lazy lazy load enable for modules which looks as following and works perfectly fine build with or without --prod flag
{
path: 'abc'
loadChildren: () =...
0
votes
1
answer
350
views
child component not get display while using router-outlet active event to get child component instance
While using router-outlet, i have used “active” event ton take child component instance.
A router outlet will emit an activate event any time a new component
is being instantiated, and a ...
0
votes
0
answers
42
views
Can Angular cli display two component at the same time where the first contain the list of item and another the overview of the item selected?
i want to know if it is possible to set-up with angular cli two component in one view , where the first component display the list of whole items and the second the overview of the item selected from ...
3
votes
3
answers
3k
views
Angular CLI E2E Testing Wrong ChromeDriver
I am using the angular CLI. I created it with:
ng new MyFirstApp
I then tried to run the end to end tests with:
ng e2e
I got the following error message:
E/launcher - session not created: This ...
0
votes
1
answer
564
views
Sass-loader PrependData in angular cli 8 using custom-webpack throws error
angular.json config
webpack.config.js file
Error Message
2
votes
1
answer
5k
views
How to define "base href " dynamically in Angular 8 application from index.html?
How to define "base href " dynamically in Angular 8 application from index.html?
Earlier I used --base-href, but now it is not supported.
0
votes
1
answer
452
views
ng add @angular/pwa - Cannot read property 'length' of undefined
I'm trying to add PWA capabilities into the Angular 8 project (generated with ng new).
ng add @angular/pwa --project projectname
Got the error:
Installing packages for tooling via npm.
+ @angular/...
3
votes
1
answer
1k
views
Angular CLI 8 update - URLs not prefixed with base href anymore
Problem
After updating our Angular application to version 8 (including Angular CLI), URLs are not prefixed with the base href provided in the angular.json file anymore, which essentially breaks our ...
1
vote
0
answers
393
views
angular 8 with ivy cannot build
I migrated my package to angular 8 and i want to use ivy because i use lazy loaded modules.
When i run ng serve i get the following error message.
I have no idea how to track down this issue. Has ...
2
votes
0
answers
596
views
Angular Library - NullInjectorError: StaticInjectorError(AppModule)[NgClassImpl -> ElementRef]
I do have a problem.
I'm building a component in a Angular Library:
<button
class="btn btn-white btn-home"
[class]="getClassBySeverity()"
[disabled]="disabled"
[hidden]="!renderer"
...
54
votes
8
answers
30k
views
BrowserslistError: Unknown version 67 of android
I have created one angular library using angular 8 and CLI 8. I am trying to build the library, but I am getting the error.
ng build <lib-name>
I have gone through some questions posted related ...
2
votes
2
answers
2k
views
angular cli duplicate chunk name after ng build
I'm developing Angular v8 app with using Angular CLI v8.
I have dashboard.module.ts
And after executing command ng-build I see in dist folder files with names:
dashboard-dashboard-module.js
Why not ...
-2
votes
1
answer
723
views
Angular Console: Can't create library
I'm trying to create a new library using v 8.1.0 of the Angular Console on Windows. The error I get is "ENOENT: no such file or directory, mkdir "c:\path\to\my\workspace\libs\...