fly丶知秋 2021-09-28 09:13 采纳率: 0%
浏览 28

vuepress在使用webcomponent组件库,在打包时提示HTMLElement未定义怎么处理

具体报错如下:

ReferenceError: HTMLElement is not defined
    at Object.7290 (E:\private\frontend\fox\ivy-ui\example\docs\.vuepress\dist\.server\app.js:9119:20)
    at __webpack_require__ (E:\private\frontend\fox\ivy-ui\example\docs\.vuepress\dist\.server\app.js:15728:42)
    at Module.4428 (E:\private\frontend\fox\ivy-ui\example\docs\.vuepress\dist\.server\app.js:1067:14)
    at __webpack_require__ (E:\private\frontend\fox\ivy-ui\example\docs\.vuepress\dist\.server\app.js:15728:42)
    at E:\private\frontend\fox\ivy-ui\example\docs\.vuepress\dist\.server\app.js:15852:37
    at Object.<anonymous> (E:\private\frontend\fox\ivy-ui\example\docs\.vuepress\dist\.server\app.js:15855:12)
    at Module._compile (internal/modules/cjs/loader.js:1072:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
    at Module.load (internal/modules/cjs/loader.js:937:32)
    at Function.Module._load (internal/modules/cjs/loader.js:778:12)
  • 写回答

1条回答 默认 最新

报告相同问题?

问题事件

  • 创建了问题 9月28日

悬赏问题

  • ¥15 内存地址视频流转RTMP
  • ¥100 有偿,谁有移远的EC200S固件和最新的Qflsh工具。
  • ¥15 找一个QT页面+目标识别(行人检测)的开源项目
  • ¥15 有没有整苹果智能分拣线上图像数据
  • ¥20 有没有人会这个东西的
  • ¥15 cfx考虑调整“enforce system memory limit”参数的设置
  • ¥30 航迹分离,航迹增强,误差分析
  • ¥15 Chrome Manifest扩展引用Ajax-hook库拦截请求失败
  • ¥15 用Ros中的Topic通讯方式控制小乌龟的速度,走矩形;编写订阅器代码
  • ¥15 LLM accuracy检测