Possible to specify a dependency's dependency? #845
Replies: 4 comments
-
i don't think you can it now. you can use import maps to make the dependency as an exteranl module, check https://preactjs.com/guide/v10/getting-started#using-preact-with-htm-and-importmaps |
Beta Was this translation helpful? Give feedback.
-
Thanks -- I didn't know about import maps. I tried that and it still didn't work (I've updated the original Codepen). While investigating this solution I did notice that I can't load |
Beta Was this translation helpful? Give feedback.
-
i will look into it! |
Beta Was this translation helpful? Give feedback.
-
I'm also interested in more control over transitive dependency versions. I ran into this issue when making use of In case it's useful to see more examples of the issue, you can reproduce it by opening this document in a browser and inspecting the network traffic: <html>
<body>
<script type="module">
import "https://esm.sh/[email protected]";
</script>
</body>
</html> |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to load and run Tiptap and I get an error that one of its (many) dependencies was loaded multiple times.
(I recognize that is likely a problem for Tiptap to fix (it also happens with Skypack) -- I am hoping for a workaround
FYI: my post on Tiptap's forum)
Network tab
Looking at the network tab, I can see that
prosemirror-model
was indeed loaded multiple timesInspecting
And they load 2 different versions
Steps to reproduce
Beta Was this translation helpful? Give feedback.
All reactions