Node events.js:167 throw er; // Unhandled 'error' event

前端 未结 19 2008

I\'m trying to use JSON Server in a React App. However, I keep getting the following error.

events.js:167
  throw er; // Unhandled \'error\' event
  ^
Emitt         


        
相关标签:
19条回答
  • 2020-12-23 21:04

    I ran into this exact issue as well and found that it is only present with react-scripts@3.0.0, downgrading to react-scripts@2.1.8 resolved the issue without needing to mess with environment variables.

    create-react-app my-app
    cd my-app
    npm install react-scripts@2.1.8
    npm start
    
    0 讨论(0)
提交回复
热议问题