当前位置: 首页 > 工具软件 > canvg > 使用案例 >

* core-js/modules/es.promise.js in ./~/canvg/lib/index.es.js * core-js/modules/es.string.match.js in

秦楚
2023-12-01

使用vue2.3.2+vue-cli2.X进行开发项目的时候运行项目出现


 **ERROR  Failed to compile with 14 errors                                                                     上午9:55:47
These dependencies were not found:
* core-js/modules/es.promise.js in ./~/canvg/lib/index.es.js
* core-js/modules/es.string.match.js in ./~/canvg/lib/index.es.js
* core-js/modules/es.array.iterator.js in ./~/canvg/lib/index.es.js
* core-js/modules/es.string.replace.js in ./~/canvg/lib/index.es.js
* core-js/modules/es.string.starts-with.js in ./~/canvg/lib/index.es.js
* core-js/modules/web.dom-collections.iterator.js in ./~/canvg/lib/index.es.js
* core-js/modules/es.array.reduce.js in ./~/canvg/lib/index.es.js
* core-js/modules/es.string.ends-with.js in ./~/canvg/lib/index.es.js
* core-js/modules/es.string.split.js in ./~/canvg/lib/index.es.js
* core-js/modules/es.string.trim.js in ./~/canvg/lib/index.es.js
* core-js/modules/es.string.includes.js in ./~/canvg/lib/index.es.js
* core-js/modules/es.array.index-of.js in ./~/canvg/lib/index.es.js
* core-js/modules/es.array.reverse.js in ./~/canvg/lib/index.es.js
* core-js/modules/es.regexp.to-string.js in ./~/canvg/lib/index.es.js**

在网上查阅说是core-js的版本问题,要切换版本

npm install core-js@3 --save
或者
npm install core-js@2 --save
 类似资料: