# I have been using visual Studio Code and I been getting this error

**URL:** <https://forum.freecodecamp.org/t/i-have-been-using-visual-studio-code-and-i-been-getting-this-error/167040>\
**Category:** General\
**Created:** [January 5, 2018, 9:36pm UTC](https://forum.freecodecamp.org/t/i-have-been-using-visual-studio-code-and-i-been-getting-this-error/167040 "2018-01-05T21:36:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GaberAlsayed](https://avatars.discourse-cdn.com/v4/letter/g/f475e1/32.png) [@GaberAlsayed](https://forum.freecodecamp.org/u/GaberAlsayed)\
**Post date:** [January 5, 2018, 9:36pm UTC](https://forum.freecodecamp.org/t/i-have-been-using-visual-studio-code-and-i-been-getting-this-error/167040/1 "2018-01-05T21:36:54Z")

</div>

I only added 2 things to my index.html code a link ref and switching the title I did nothing else to any other files beside this App.js. I did create-an-app, bootstrap install, npm install, and yarn start. All successful where up to the 18:30 minute mark following CodingTutorial360 my localhost display is blank with this console error. I tried for about an hour to an hour in a half checking for syntax and making sure I got all the stuff installed with git bash I am going to take a break on Codeacademy or some other coding website so I don’t burn my self out on this one error. Thank you for anyone who responds

> Warning: Each child in an array or iterator should have a unique “key” prop.
> 
> Check the render method of `App`. See [https://fb.me/react-warning-keys](https://fb.me/react-warning-keys) for more information.  
> in li (at App.js:31)  
> in App (at index.js:7)  
> bundle.js (31469,9)
> 
> Warning: Failed prop type: In order to properly initialize the PanelGroup in a way that is accessible to assistive technologies (such as screen readers) an `id` or a `generateChildId` prop to PanelGroup is required  
> in PanelGroup (created by Uncontrolled(PanelGroup))  
> in Uncontrolled(PanelGroup) (created by Accordion)  
> in Accordion (at App.js:26)  
> in div (at App.js:25)  
> in App (at index.js:7)

This is my code for App.js,

```auto
import React, { Component } from 'react';
import './App.css';
import Accordion from 'react-bootstrap/lib/Accordion'
import Panel from 'react-bootstrap/lib/Panel'
import Button from 'react-bootstrap/lib/Button'
import ButtonToolbar from 'react-bootstrap/lib/ButtonToolbar'
import Modal from 'react-bootstrap/lib/Modal'
import FormGroup from 'react-bootstrap/lib/FormGroup' 
import ControlLabel from 'react-bootstrap/lib/ControlLabel'
import FormControl from 'react-bootstrap/lib/FormControl'

class App extends Component {

state ={
  recipes: [
    {recipeName: 'Dylan1', ingredients: ['Sexy', 'Spelling Champ', 'MEGA SMART']},
    {recipeName: 'Dylan2', ingredients: ['Sexy', 'Spelling Champ', 'MEGA SMART']},
    {recipeName: 'Dylan3', ingredients: ['Sexy', 'Spelling Champ', 'MEGA SMART']}
  ]
}

  render() {
    const {recipes} = this.state;
    return (
      <div className="App container">
        <Accordion>
        {recipes.map((recipe, index)=>(
 <Panel header={recipe.recipeName} eventKey = {index} key = {index}>
<ol>
  {recipe.ingredients.map((item)=>(
    <li>key={item}>{item}</li>
  ))}
</ol>
 </Panel> 

        ))}
        </Accordion>
      </div>
    );
  }
}

export default App;

```

---

<div class="post-metadata">

**Author:** ![jainilvachhani](https://avatars.discourse-cdn.com/v4/letter/j/e19adc/32.png) [@jainilvachhani](https://forum.freecodecamp.org/u/jainilvachhani)\
**Post date:** [January 27, 2018, 8:47pm UTC](https://forum.freecodecamp.org/t/i-have-been-using-visual-studio-code-and-i-been-getting-this-error/167040/4 "2018-01-27T20:47:58Z")

</div>

You need to give id to div and Accordian tag.  
Something like this should work:

```auto
<div id = 'a'>
<Accordian id = 'b'>

```

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 8:28pm UTC](https://forum.freecodecamp.org/t/i-have-been-using-visual-studio-code-and-i-been-getting-this-error/167040/5 "2021-01-17T20:28:30Z")

</div>

Closed on January 17, 2021, 8:28pm UTC


