You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Did you perform a cursory search of open issues? Is this bug already reported elsewhere?
Are you running the latest SDK version?
Are you reporting to the correct repository (@magic-sdk/admin)?
๐ Description
Upgrading to the new version of magic breaks the server because of the dynamic import of the crypto module.
Run npx playwright test --project=chromium
[WebServer] Error: Dynamic require of "crypto" is not supported
at file:///home/runner/work/french-house-stack/french-house-stack/build/index.js?t=1705785829014.18:12:9
at node_modules/@noble/hashes/crypto.js (file:///home/runner/work/french-house-stack/french-house-stack/build/index.js?t=1705785829014.18:1[10](https://github.com/ten-x-dev/french-house-stack/actions/runs/7596904096/job/20691132649?pr=256#step:7:11)0:40)
at file:///home/runner/work/french-house-stack/french-house-stack/build/index.js?t=1705785829014.18:1019:55
at node_modules/@noble/hashes/utils.js (file:///home/runner/work/french-house-stack/french-house-stack/build/index.js?t=1705785829014.18:[11](https://github.com/ten-x-dev/french-house-stack/actions/runs/7596904096/job/20691132649?pr=256#step:7:12)10:24)
at file:///home/runner/work/french-house-stack/french-house-stack/build/index.js?t=1705785829014.18:1019:55
at node_modules/@noble/hashes/sha3.js (file:///home/runner/work/french-house-stack/french-house-stack/build/index.js?t=1705785829014.18:[12](https://github.com/ten-x-dev/french-house-stack/actions/runs/7596904096/job/20691132649?pr=256#step:7:13)62:61)
at file:///home/runner/work/french-house-stack/french-house-stack/build/index.js?t=1705785829014.18:1019:55
at node_modules/ethereum-cryptography/keccak.js (file:///home/runner/work/french-house-stack/french-house-stack/build/index.js?t=17057858290[14](https://github.com/ten-x-dev/french-house-stack/actions/runs/7596904096/job/20691132649?pr=256#step:7:15).18:1445:33)
at file:///home/runner/work/french-house-stack/french-house-stack/build/index.js?t=1705785829014.18:1019:55
at node_modules/@magic-sdk/admin/dist/esm/index.js (file:///home/runner/work/french-house-stack/french-house-stack/build/index.js?t=[17](https://github.com/ten-x-dev/french-house-stack/actions/runs/7596904096/job/20691132649?pr=256#step:7:18)05785829014.[18](https://github.com/ten-x-dev/french-house-stack/actions/runs/7596904096/job/20691132649?pr=256#step:7:19):4331:34)
```
### ๐งฉ Steps to Reproduce
Import it on the server and run in CI.
### ๐ค Expected behavior
Not to break ๐
### ๐ฎ Actual behavior
It blows up.
### ๐ป Code Sample
Simply create a new Remix app with ESM and import Magic on the server.
### ๐ Environment
| Software | Version(s) |
| ------------------ | ---------- |
| `@magic-sdk/admin` | 2.1.0
| Node | 20.10.0
| `yarn` | N/A
| Operating System | iOS
The text was updated successfully, but these errors were encountered:
โ Prerequisites
@magic-sdk/admin
)?๐ Description
Upgrading to the new version of magic breaks the server because of the dynamic import of the
crypto
module.The text was updated successfully, but these errors were encountered: