即使安装了加载程序,也会出现“您可能需要适当的加载程序”错误

时间:2018-06-28 19:35:23

标签: webpack

我还不清楚为什么未检测到用于编译我的jsx的加载器,我可以在节点模块中看到它。我的开发依赖项看起来像这样

SELECT * FROM manualp WHERE client_id=75 AND date between '$currentdate' and '$prevdate' 
UNION 
SELECT * FROM (SELECT * FROM manualp WHERE client_id=75 order by date DESC LIMIT 1) t1

和我们在webpack.config上关心的部分一样

"devDependencies": {
    "babel-cli": "^6.2.0",
    "babel-core": "^6.2.1",
    "babel-loader": "^6.2.0",
    "babel-preset-es2015": "^6.1.18",
    "babel-preset-react": "^6.1.18",
    "babel-preset-stage-2": "^6.24.1",
    "copy-webpack-plugin": "^4.5.1",
    "css-loader": "^0.22.0",
    "html-webpack-plugin": "^3.2.0",
    "extract-text-webpack-plugin": "^0.9.1",
    "json-loader": "^0.5.3",
    "node-sass": "^3.4.2",
    "react": "^0.14.0 || ^15.0.0",
    "react-dom": "^0.14.0 || ^15.0.0",
    "sass-loader": "^3.1.2",
    "style-loader": "^0.13.0",
    "webpack": "^1.15.0",
    "webpack-cli": "^3.0.8",
    "webpack-dev-server": "^1.12.1",
    "webpack-emit-all-plugin": "^1.0.0"
  },

虽然webpack.config中的预设应该足够,但我也使用.babelrc。.我不知道我缺少了什么或如何调试它并找出问题所在。

任何帮助,谢谢

0 个答案:

没有答案