Quantcast
Channel: User Ahmed Elkoussy - Stack Overflow
Browsing latest articles
Browse All 83 View Live

When upgrading Angular 5 to 6, I get incompatible peer dependency (using ng...

I am trying to update my Angular app from v5 to v6 following this guide. I have ran all these commands successfully: npm install -g @angular/cli npm install @angular/cli ng update @angular/cli The...

View Article



Comment by Ahmed Elkoussy on How to export a global scss variables file to be...

No, it actually doesn't compile that's why I am asking for help on the scss issue, that is why webpack fails to compile (but only for scss, for js it works now)

View Article

Adding a utf-8 font to jsPDF library to print utf-8 Arabic pdfs in Angular...

I have been searching for hours to enable the UTF-8 support in jsPDF library, since it is a new feature released in jsPDF 1.4 I can't find useful resources to enable it I found two methods in the...

View Article

Comment by Ahmed Elkoussy on Where is the Rails app log on ubuntu server...

Thanks for the help @holger, it turns out to be something in the staging configuration that I didn't note as Nathan pointed out

View Article

Comment by Ahmed Elkoussy on Rails, Capistrano - Compilation failed without...

Thanks @Robin, that was very helpful

View Article


Comment by Ahmed Elkoussy on How to recreate form with dynamic fields for...

Thank you, but here you assume knowing that it is only 2 fields, it was only an example, I wanna handle a generic case where the user entered any number of fields and we wanna give him an edit form...

View Article

Comment by Ahmed Elkoussy on How to recreate form with dynamic fields for...

@ZohaibIjaz I have updated the question, sorry didn't notice that your comment was here, I provided a new sandbox because yours solve it for a static case & I didn't want to change the initial...

View Article

Comment by Ahmed Elkoussy on How to make readonly all inputs in some div in...

How different & so what? the answer is pretty clear, that if you want to disable fields then you do so & so

View Article


Comment by Ahmed Elkoussy on npm uninstall removes the package from...

My pleasure, glad I could help

View Article


React Antd v4 autocomplete shows selected value instead of label upon...

I am using React Antd v3 & upgrading it to v4, I noticed one issue, where the Autocomplete component was changed & now it is behaving in a weird mannerPassing a json array of [{value: string,...

View Article

Answer by Ahmed Elkoussy for React Antd v4 autocomplete shows selected value...

As indicated in the issue that I have opened on Antd repo, this behaviour is intended in the new versionHowever, the closest thing to what I needed is the Antd Select with a search option, which does...

View Article

Angular 5 material: dropdown (select) required validation is not working

I have a material dropdown inside my ngForm, when I set this select as required it shows an asterisk * beside it but the form is seen as valid if I don't select any option from the...

View Article

Answer by Ahmed Elkoussy for Git: working file is different than last commit...

The problem here that led to this, was running git log --follow -- full_path_to_fileBy running instead git log full_path_to_file ( instead of the above), it has shown the commit that resulted in the...

View Article


Git: working file is different than last commit without having any commit for...

I have a file where:The previous version of the file, with commit (ABC for example) is correct however the current (working file), compared to the previous version (using gitlens on vs code), lost many...

View Article

Can't specify digitalocean endpoint in sitemap_generator s3 aws adaptor

I am using sitemap_generator in our Rails application & trying to create and upload the sitemaps to DigitalOcean spaces (which is s3 compatible as far as I know) but I can't override the endpoint...

View Article


VS code default all html files to Django templates & comments them in a wrong...

VS code default all html files to Django templates & comments them in a wrong way (if I press ctrl + /)i.e it comments normal html files by adding {% comment %} & {% endcomment %} instead of...

View Article

How to wrap angular material form into a component & expose them to FormGroup...

I am trying to encapsulate a component (for example called custom-input) as a formControl element based on Angular material components to contain the following:<mat-form-field ><input matInput...

View Article


Spring security antMatchers not being applied on POST requests and only works...

I am using Spring security library to secure REST apis in my application, I am trying now to allow access to all URLs (temporarily) but with the below configuration I find that only GET requests are...

View Article

Answer by Ahmed Elkoussy for Spring security antMatchers not being applied on...

After some investigation, it turned out that antMatcher was working as expected & allowing all URLs as intended, but the reason for the forbidden response that I was getting for the POST APIs was...

View Article

Answer by Ahmed Elkoussy for Import and use three.js library in vue component

import * as THREE from "three";Worked well for me!

View Article

Can't clone git repo and getting error ssh_askpass:...

I was trying to clone a git repo from gitlab using vs code git plugin but I kept getting this error:ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory Host key verification failedBefore...

View Article


VueJS: is there any performance benefit for using vue refs instead of css id...

I tried to find a comparison or a reason to why Vue has refs to control an element instead of using classic css ids to control some element like a div for example, can someone explain the difference?...

View Article


Answer by Ahmed Elkoussy for Flutter run error : You have not accepted the...

For me, flutter doctor --android-licenses didn't work for some reason.The only command that worked & solved the issue was:(your android_sdk folder exact path)\tools\bin\sdkmanager --licenses

View Article

IBM WAS 9 error on first 2 calls for a specific method after installing the...

I have a very strange error happening in IBM WAS 9 when I run a spring boot version 2 application on the WAS, on calling a specific function for the first 2 times only after installing the WAR file, I...

View Article

Answer by Ahmed Elkoussy for How can I uninstall npm modules in Node.js?

The uninstall option didn't work for me when I tried to use the same command to the one I used in installing (as I was installing with the @latest directive)So for example, I installed a package like...

View Article


Answer by Ahmed Elkoussy for How to remove [vue/no-use-v-if-with-v-for] warning?

I understand you asked specifically on how to ignore this warning, but this is a reminder for others who might benefit more from fixing it instead of ignoring it:The warning is there for a good reason,...

View Article

Answer by Ahmed Elkoussy for How to get the code coverage report using Jest?

Jan 2019: Jest version 23.6For anyone looking into this question recently especially if testing using npm or yarn directlyCurrently, you don't have to change the configuration optionsAs per Jest...

View Article

Comment by Ahmed Elkoussy on How do i overwrite the typescript loader in...

@LppEdd hi, did you find a way? :) I am trying to do the same but the overwritting itself fails

View Article

npm uninstall removes the package from package.json but doesn't remove it...

I have tried to remove a package by usingnpm uninstall (package_name) -s Which removed the package from package.json but didn't remove it from node_modules folder, so how can I remove these unused...

View Article



Calling Spring boot api that downloads a pdf from Angular 6 is giving error...

I have a spring boot API that creates a pdf report and download it, if I call the API directly in the browser, the pdf is created and downloaded directly, but when I call that GET API from Angular 6 I...

View Article

How to define a global javascript method in webpack packs for rails application

I found many questions about making a variable or function global in Javascript (& generally I understand it is not a good practice), but sometimes we need to avail JS functions across the...

View Article

Answer by Ahmed Elkoussy for Cannot read property 'signature' of undefined -...

The solution was to just remove this plugin that was mentioned in the ReadmeisDevelopment && require.resolve('react-refresh/babel')Only keeping the other plugin was sufficient for it to...

View Article

Cannot read property 'signature' of undefined - react-refresh-webpack-plugin

I am trying to add this library: react-refresh-webpack-plugin to my react application and I get the following error:Cannot read property 'signature' of undefined #229I followed the Readme of the...

View Article


Answer by Ahmed Elkoussy for NPM install resulting in 401 Unauthorized for...

I got the same error but the reason in my case was different than the above answers:I discovered that the package-lock.json had some of the packages resolved to a private url instead of the typical...

View Article

Answer by Ahmed Elkoussy for How to fix VS Code "live share" extension not...

I had the same problem on a Macbook with M1 chip, I tried the other answers but they didn't work and the solution for my case was to install rosetta software (seems like liveshare depends on some Intel...

View Article

--- Article Not Found! ---

*** *** *** RSSing Note: Article is missing! We don't know where we put it!!. *** ***

View Article


Comment by Ahmed Elkoussy on Error when trying to inject a service into an...

I probably didn't see that answer when posting and it is similar but not the same - for the linked answer he added the import (in the app, not specifying where exactly in which file) and I disabled it...

View Article

Browsing latest articles
Browse All 83 View Live




Latest Images