系统js-模块未加载

问题描述

我在使用systemjs和canvg时遇到问题。

我的systemjs配置:

System.config({
  transpiler: 'plugin-babel',paths: {
    'npm:': '../../../../node_modules/'
  },defaultExtension: 'js',map: {
    ....

    /** canvg */
    "@babel/runtime-corejs3": 'npm:@babel/runtime-corejs3',"@types/raf": 'npm:@types/raf',"raf": 'npm:raf/index.js',"rgbcolor": 'npm:rgbcolor/index.js',"stackblur-canvas": 'npm:stackblur-canvas/dist/stackblur.min.js',"svg-pathdata": 'npm:svg-pathdata/lib/SVGPathData.js','canvg': 'npm:canvg/lib/index.js',/**/

    .....
  },packageConfigPaths: [
    "npm:@babel/runtime-corejs3/package.json"
  ]
});

运行应用程序时出现错误: http://.../node_modules/@babel/runtime-corejs3/regenerator.js 404(未找到)

我尝试在packages添加代码

'@babel/runtime-corejs3/regenerator.js': {
   main: 'index',defaultExtension: 'js'
 },

但是没有效果。 如果有人有解决的办法?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)