求助大佬、通过npm创建的vue-cli项目,编译时uni-ui组件icons出现如下错误:
ERROR Failed to compile with 2 errors 12:11:17
error in ./node_modules/@dcloudio/uni-ui/lib/uni-icons/uniicons.ttf
oldOptions[key] is not a function
error
Cannot read properties of undefined (reading 'get')s served from 'D:\nodejs\uniapp\campus-project-page\campus-miniprogra
during rendering of asset asset|D:\nodejs\uniapp\campus-project-page\campus-miniprogram\node_modules\@dcloudio\uni-ui\li
b\uni-icons\uniicons.ttf 404s will fallback to '/index.html'
...<略>...
ERROR in Cannot read properties of undefined (reading 'get')
during rendering of asset asset|D:\nodejs\uniapp\campus-project-page\campus-miniprogram\node_modules\@dcloudio\uni-ui\li
b\uni-icons\uniicons.ttf
3 errors have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.
页面错误如附件所示
3***@qq.com (作者)
您好,我重新创建了一个新工程(项目创建参照教程:https://zh.uniapp.dcloud.io/quickstart-cli.html;uni-ui安装参照:https://github.com/dcloudio/uni-ui (方式二)),上传了问题工程附件,问题仍然存在;node 版本=v16.15.0,如需其他系统信息可以回复,如我工程创建错误还请不吝赐教,如有其他问题还请指导解决。
2024-03-08 12:55