【发布时间】:2019-06-16 23:00:29
【问题描述】:
我正在使用image-webpack-loader,但收到以下错误消息:
我像这样导入我的图像:
import icon10 from '../../assets/img/icon10.png';
ERROR in ./app/assets/img/icon10.png
Module build failed (from ./node_modules/image-webpack-loader/index.js):
ArgumentError: Expected argument to be of type `array` but received type `string`
at input (C:\Users\***\Desktop\pos\node_modules\imagemin-pngquant\index.js:32:3)
at <anonymous>
@ ./app/containers/Home/index.js 51:0-49 200:13-19
@ ./app/containers/Home/Loadable.js
@ ./app/containers/App/index.js
@ ./app/app.js
@ multi ./node_modules/react-app-polyfill/ie11.js ./app/app.js
【问题讨论】:
-
在他们的存储库上打开一个问题
标签: javascript reactjs webpack node-modules