Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught Error: Failed to find: -lhs-rhs-canvas #217

Open
flatmax opened this issue Nov 16, 2024 · 1 comment
Open

Uncaught Error: Failed to find: -lhs-rhs-canvas #217

flatmax opened this issue Nov 16, 2024 · 1 comment

Comments

@flatmax
Copy link

flatmax commented Nov 16, 2024

I'm getting around shadow dom in litelement like so :

  render() {
    const div = document.createElement('div');
    div.style.height = '100'
    div.style.width = '300'
    document.body.appendChild(div);
    const doc = new window.Mergely(div, { lhs: this.codeText, rhs: this.codeOrigText });
    
    return html`... other stuff`
  }

However when I run, I get the following bug :

mergely.js:12189 Uncaught Error: Failed to find: -lhs-rhs-canvas
@wickedest
Copy link
Owner

Try giving the DOM element an id.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants