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

index.js:3392 Uncaught NotSupportedError: Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree. #1217

Open
muuvmuuv opened this issue Dec 7, 2024 · 0 comments

Comments

@muuvmuuv
Copy link

muuvmuuv commented Dec 7, 2024

Cropper version

2

Link to minimal reproduction

https://stackblitz.com/edit/angular-9tyk7u7m?file=src%2Fapp%2Fexample.component.ts,src%2Fapp%2Fexample.component.html

Steps to reproduce

  1. Open dev-console

What is expected?

Creates the element in a shadow modal

What is actually happening?

preview-587cd39a5889a.js:2 NotSupportedError: Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.
at CropperImage.connectedCallback (element.raw.js:128:31)
at CropperImage.connectedCallback (element-image.raw.js:82:17)
at eval (framework-delegate.js:118:13)
at Generator.next ()
at eval (tslib.js:170:75)
at new Promise ()
at Object.__awaiter (tslib.js:166:16)
at Object.attachViewToDom (framework-delegate.js:44:86)
at eval (framework-delegate.js:13:25)
at Generator.next ()

System Info

No response

Any additional comments?

No response

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

No branches or pull requests

2 participants