Skip to content

main.ts:17 SyntaxError: The requested module '/node_modules/vislite/lib/index.umd.min.js?v=4454559d' does not provide an export named 'RawCanvas' (at index.vue:3:10) #5

Description

@bcofoods

问题描述
[问题描述:尽可能简洁清晰地把问题描述清楚]

复现步骤
[复现问题的步骤]

  1. 启动 '...'
  2. 点击 '....'
  3. 查看

[或者可以直接贴源代码]

<template>
  <view class="content">

    <ui-canvas ref="canvasRef" :width="400" :height="400"></ui-canvas>

  </view>
</template>

<script setup lang="ts">
import { ref, onMounted } from "vue";
import type CanvasType from "vislite/types/Canvas";

let canvasRef = ref();
onMounted(function () {

  canvasRef.value.fetch().then((painter: CanvasType) => {
    
    console.log(painter)

  });

});
</script>

<style lang="scss" scoped>
.content {}
</style>

预期结果
[使用简洁清晰的语言描述你希望生效的预期结果]

实际结果
[这里请贴上你的报错截图或文字]

系统信息:

  • 操作系统 [如 macOS monterey 12.3]
  • 设备信息 [如 MacBook Air (13-inch, Early 2015)]
  • "uni-query": "^2.2.0",

补充信息
[可选]
[根据你的分析,出现这个问题的原因可能在哪里?]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions