Invariant Violation: You should not use outside a

后端 未结 10 1398
没有蜡笔的小新
没有蜡笔的小新 2021-02-01 00:30

I have a problem that I don\'t know how to solve, I get this error when running npm test

Invariant Violation: You should not use

10条回答
  •  清酒与你
    2021-02-01 01:01

    Error: Invariant failed: You should not use ,, outside a [enter image description here][1]
    
    [Error: Invariant failed: You should not use ,, outside a  ][1]
    
     1. Open Index.js or Index.jsx
     2. add-> import { BrowserRouter } from "react-router-dom";
     3.Rap  in  and  
    should  look like :
    ReactDOM.render(
      
        
          
        
      ,
      document.getElementById("root")
    );
    

提交回复
热议问题