1、问题
使用字体图标时报错:
Uncaught Error: Module build failed (from ./node_modules/url-loader/index.js):
TypeError [ERR_INVALID_ARG_TYPE]: The “id” argument must be of type string. Received an instance of Object
2、原因
url-loader版本太低。
3、解决办法
卸载低版本,安装高版本。可以安装url-loader@4.1.1
npm uninstall url-loader
npm install url-loader@4.1.1
或在图形界面中直接下载此依赖