报错内容
解决方案有三个
具体原理不懂,找的解决方法
先试第三种省的麻烦,不行再试前两种
1.用的ts的话在main.ts下面建一个新的poly fills.ts,然后在main.ts引入
2.在index.html里面加插入
3.以上两种还这种报错
vue-router.esm-bundler.js:3248 TypeError: util.inherits is not a function at eventsource.js:315 at chunk-KHGO2BKN.js?v=76cbd4e4:4 at eventsource.js:5 at chunk-KHGO2BKN.js?v=76cbd4e4:4 at eventsource.js:5 at chunk-KHGO2BKN.js?v=76cbd4e4:4 at transport-list.js:8 at chunk-KHGO2BKN.js?v=76cbd4e4:4 at entry.js:3 at chunk-KHGO2BKN.js?v=76cbd4e4:4
把引入方式改成
gitHub解决办法讨论地址:https://github.com/sockjs/sockjs-client/issues/547
原文链接:https://blog.csdn.net/sagshshbkp/article/details/124142957?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522165934458816781432995996%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=165934458816781432995996&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1~times_rank-18-124142957-null-null.article_score_rank_blog&utm_term=%E8%87%AA%E5%BB%BAcdn
原创文章,作者:优速盾-小U,如若转载,请注明出处:https://www.cdnb.net/bbs/archives/6969