Skip to content

Uncaught TypeError: Cannot read properties of null (reading 'define') #244

@krasheed1995

Description

@krasheed1995

getting error in line number - lottie-player.js 31

var n$1=t=>e=>"function"==typeof e?((t,e)=>(window.customElements.define(t,e),e))(t,e):((t,e)=>{var{kind:r,elements:i}=e;return{kind:r,elements:i,finisher(e){window.customElements.define(t,e)}}})(t,e)

Uncaught TypeError: Cannot read properties of null (reading 'define')

i use it for browser extension in content scripts. when i go to any webpage and inspect the page i get this error.
the script is downloaded from https://unpkg.com/@lottiefiles/lottie-player@2.0.4/dist/lottie-player.js

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