Posts

React bootstrap throwing invalid hook error in react.js

Image
    If you ever run into this issue follow the instructions below.  your code/project is missing the react-bootstrap package. It is not listed in the package.json     file in your directory.   To add locally for your project, run from the project directory: npm i -s react-bootstrap This will install the current version of react-bootstrap and add/save it to the package.json dependencies section..    for more details about react-bootstrap try visiting this link: https://react-bootstrap.github.io/getting-started/introduction    

Day 2: Loops :- 10 Days Of Javascript HackerRank Solution

Image
  Day 2: Loops :- 10 Days Of Javascript HackerRank Solution  Objective In this challenge, we practice looping over the characters of string. Check out the attached tutorial for more details. Task Complete the  vowelsAndConsonants  function in the editor below. It has one parameter, a string,  , consisting of lowercase English alphabetic letters (i.e.,  a  through  z ). The function must do the following: First, print each  vowel  in   on a new line. The English vowels are  a ,  e ,  i ,  o , and  u , and each vowel must be printed in the same order as it appeared in  . Second, print each  consonant  (i.e., non-vowel) in   on a new line in the same order as it appeared in  . Input Format Locked stub code in the editor reads string   from stdin and passes it to the function. Output Format First, print each  vowel  in...

Angular 6 - ERROR TypeError: Cannot read property 'value' of undefined

Image
 I can't belive that a single   '?'     ruined my day that's why i'm creating this post . i'll try to make this as simple as i can. This happens becuse one of your object does'n have the value untill the API response arrives.So use  ? to check untill the response arrives for example: question :   this . pollForm . get ( "question" )?. value

VS CODE UNABLE TO CHANGE USER SETTINGS - HOW TO FIX IT

Image
 Most of  you have ran into this issue .today i'm going to show you how to fix this.  lets roll !!!!!!! 1.use ctrl+p to enable search bar in your vs code 2.type this in your searchbar "> Open settings"   3.Select "preferences:open settings (JSON)"       4.Clear everthing in that file and save it               5.Restart your pc                                                  that's it you are ready to go                                                                                  

Node.js module not found error -how to fix it

Image
 Most of the tenderfoots have ran into this error. when you install node.js for the first time and put npm install to your IDE'S terminal you'll see an error message telling you that 'module not found' .im going to show you how to fix this .it's simple lets roll!!!!                     we have to fix npm path for this Use the global Search option to search "Environment Variables" Click "Edit system environment variables" Click "Environment Variables" in the dialog. In the "System Variables" box, search for Path and edit it to include  C:\Program Files\nodejs . Make sure it is separated from any other paths by a  ; . Now all you have to do is restart your pc and you're ready to go