2016-11-05 78 views
5

我更新我的node.js到版本7和運行的WebPack後的項目,我收到錯誤消息:ERROR in Path must be a string. Received undefined路徑中的Webpack ERROR必須是字符串。收到未定義

我的package.json:

"dependencies": { 
    "react": "^15.3.1", 
    "react-native": "^0.33.0", 
    "react-redux": "^4.4.5", 
    "react-web": "0.4.5", 
    "redux": "^3.6.0", 
    "redux-thunk": "^2.1.0", 
    "remote-redux-devtools": "^0.4.8" 
    }, 
    "devDependencies": { 
    "babel-core": "^6.18.2", 
    "babel-loader": "^6.2.7", 
    "babel-preset-react-native": "^1.9.0", 
    "babel-preset-stage-1": "^6.16.0", 
    "haste-resolver-webpack-plugin": "^0.2.2", 
    "json-loader": "^0.5.4", 
    "react-dom": "^15.3.2", 
    "react-hot-loader": "^1.3.0", 
    "webpack": "^1.13.3", 
    "webpack-dev-server": "^1.16.2", 
    "webpack-html-plugin": "^0.1.1" 
    } 

任何人有一個建議?如何解決這個問題?

+0

同樣的問題 – Johny19

+0

同樣的問題,以及...任何更新? –

回答

0

該問題的問題與節點6及以上相關。改變它的節點5.x反而可能會解決這個問題。

+0

現在我們有穩定的版本8.爲什麼要使用舊版本節點? – ximet

0

我以前有同樣的問題,那麼我認爲這是插件的錯誤。然後,我添加文件名到這個插件。它的工作。

//這裏這裏webpack.config.js

plugins: [ 
    new HtmlWebpackPlugin({ 
     title: 'use plugin', 
     filename: 'index.html' 
    }) 
] 
相關問題