2017-02-04 46 views
0

我正在嘗試使用superagentcreate-react-app引導程序。我收到錯誤:Superagent和create-react-app錯誤,未找到模塊

錯誤./src/ToDoApp.js 模塊未找到:[CaseSensitivePathsPlugin] node_modules\superagent\lib\client.js與磁盤上的相應路徑不匹配 - 文件不存在。

我導入模塊:

import request from 'superagent'; 
import noCache from 'superagent-no-cache'; 

我用我的request.getComponentDidMount

componentDidMount(){ 
     request.get(this.apiUrl) 
     .use(noCache) 
     .end(function _requestCallback() { 
      // this.setState({data:res.data}); 
      console.log('gotit'); 
     }); 
    } 

任何想法?

回答

-1

編輯:

一個想法:同時安裝模塊的新版本,然後再試一次

+1

請解釋如何解決,而不是將它指向不同的問題/源 – Harwee

+0

@Harwee問題基本細節,我很抱歉,這是我第一次回答。謝謝。 –

相關問題