Comments (10)
Any update on this?
from import-map-overrides.
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.
We have the same problem on page load.
from import-map-overrides.
We have the same problem
from import-map-overrides.
I am seeing the same error. @joeldenning, is there any chance we can get someone to look at this?
from import-map-overrides.
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.
Same error here with version 3.0.0.
from import-map-overrides.
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.
@joeldenning , can you release v3.0.1 with a fix?
from import-map-overrides.
This has been released. Closing it.
from import-map-overrides.
Related Issues (20)
- Using import-map-overrides for making an 'in-browser' IDE. HOT 1
- Confusing reload icon after adding an override HOT 6
- IE 11 broken HOT 4
- Overrides triggers cross-origin issue when loaded into iframe (MS Teams) HOT 1
- buttons in ui can get "bad" styling HOT 1
- Server-side single maps - cookie should specify a path HOT 1
- Bug introduced by terser HOT 1
- Is there a way to disable Auto Dev Lib Override? HOT 2
- how can i create E2E cypress tests? HOT 4
- Hi, I have this error in the console : Shadow root cannot be created on a host which already hosts a shadow tree. HOT 7
- Is it possible to support SystemJS and native imports at the same time? HOT 1
- Import maps blocked in Safari HOT 2
- cross-origin when trying to embed the single-spa app, with devtools enabled, in an iframe HOT 1
- Add configuration to control where the UI button is positioned HOT 4
- Relative imports in an import map accessed from a remote JSON file should be resolved w.r.t. the domain of the remote, not the domain of the host HOT 3
- Attribute trigger-position does not have any effect HOT 3
- An import map is added after module script load was triggered. HOT 2
- When parsing an empty script tag of type importmap the parser throws an error. Is this OK?
- Warning while building import-map-overrides-server.js HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from import-map-overrides.