Giter VIP home page Giter VIP logo

Comments (10)

adripanico avatar adripanico commented on May 30, 2024 4

Any update on this?

from import-map-overrides.

OriolInvernonLlaneza avatar OriolInvernonLlaneza commented on May 30, 2024 3

It looks like the issue comes from the element already having a shadow root attached. It makes attachShadow throw InvalidStateError exception.

I made a PR that just checks if it is already created, it seems to work fine but maybe I didn't take something into account.

from import-map-overrides.

OriolInvernonLlaneza avatar OriolInvernonLlaneza commented on May 30, 2024

We have the same problem on page load.

from import-map-overrides.

smilyanp avatar smilyanp commented on May 30, 2024

We have the same problem

from import-map-overrides.

moderndegree avatar moderndegree commented on May 30, 2024

I am seeing the same error. @joeldenning, is there any chance we can get someone to look at this?

from import-map-overrides.

lhtdesignde avatar lhtdesignde commented on May 30, 2024

Seeing the same thing. Uncaught DOMException: Operation is not supported.
Happens at value:function(){this.shadow=this.attachShadow({mode:"open"})

Works fine in 2.4.2. Would be great to get this fixed seeing that it's around for some time.
@joeldenning any way we could help here?

from import-map-overrides.

SergioTx avatar SergioTx commented on May 30, 2024

Same error here with version 3.0.0.

from import-map-overrides.

Achilles1515 avatar Achilles1515 commented on May 30, 2024

Workaround until fixed:

<!-- <import-map-overrides-full show-when-local-storage="overrides-ui"></import-map-overrides-full> -->
<script>
	const imo = document.createElement('import-map-overrides-full', { is: 'import-map-overrides-full' });
	imo.setAttribute('show-when-local-storage', 'overrides-ui');
	const attachShadowOriginal = imo.attachShadow;
	imo.attachShadow = function (options) {
		return this.shadowRoot ?? attachShadowOriginal.apply(this, [options]);
	};
	document.body.appendChild(imo);
</script>

from import-map-overrides.

piwysocki avatar piwysocki commented on May 30, 2024

@joeldenning , can you release v3.0.1 with a fix?

from import-map-overrides.

robmosca avatar robmosca commented on May 30, 2024

This has been released. Closing it.

from import-map-overrides.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.