Open cryptographix opened 2 years ago
Maybe same problem as #269
I am having the similar issue with a different package here:
<script type="module">
import { PeraWalletConnect } from "https://cdn.skypack.dev/@perawallet/connect"
</script>
Error:
Uncaught TypeError: Cannot destructure property 'isBrowser' of '__commonjs_module0' as it is null.
Hi, I'm having some trouble importing from skypack.dev, where a destructuring import is apparently being converted a default import which is null.
Steps to reproduce
test.html:
Error:
Uncaught TypeError: Cannot destructure property 'canUseDOM' of '__commonjs_module0' as it is null. at fast-web-utilities.js:2:8
Installing locally from npm, file
node_modules/@microsoft/fast-web-utilities/dist/dom.js
containswhich is being converted to:
whereas
exenv-es6/dist/index.js
containsand
exenv-es6/dist/can-use-dom.js
is: