Skip to content

TypeError: Cannot read property 'addEventListener' of null  #12

@iangwaigdev

Description

@iangwaigdev

n.value node_modules/react-audioplayer/build/react-audioplayer.js:1

TypeError: Cannot read property 'addEventListener' of null
TypeError: Cannot read property 'removeEventListener' of null

two errors when trying to load component inside render.

<Audio
width={600}
height={400}
autoPlay={true}
fullPlayer={true}
playlist={p}
style={{ paddingTop: 5 }}
onCommentSubmit={text => {
console.log(text);
}}
/>

const p is an array with song objects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions