Skip to content

Using wavedrom3.5.0 in vue3.4.21, the error wavedrom.js?v=c79103ed:2702 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'childNodes') at Object.renderWaveElement #415

Open
@liuhuan1011

Description

@liuhuan1011

Using wavedrom3.5.0 in vue3.4.21, the error wavedrom.js?v=c79103ed:2702 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'childNodes')
at Object.renderWaveElement....

<script setup> import { ref, onMounted, watch, nextTick } from 'vue'; import { default as WaveDrom } from "wavedrom"; const props = defineProps({ signal: { type: Object, required: true, } }) let waveData = { signal: [ { name: "clk", wave: "p......" } ] }; let waveElement = ref(); onMounted(() => { nextTick(()=> { if(waveElement.value) { WaveDrom.renderWaveElement(waveElement.value, waveData); } }) }); </script>

Activity

totemtec

totemtec commented on Aug 9, 2024

@totemtec
function renderWaveForm (index, source, output, notFirstSignal) {
    renderWaveElement(index, source, document.getElementById(output + index), window.WaveSkin, notFirstSignal);
}

看看你的参数对不对

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Using wavedrom3.5.0 in vue3.4.21, the error wavedrom.js?v=c79103ed:2702 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'childNodes') at Object.renderWaveElement · Issue #415 · wavedrom/wavedrom