Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: 'fromMiliseconds' is not exported by node_modules/@walletconnect/time/dist/cjs/index.js, imported by node_modules/@walletconnect/relay-auth/dist/esm/api.js #134

Open
CherryDT opened this issue Sep 12, 2023 · 1 comment

Comments

@CherryDT
Copy link

CherryDT commented Sep 12, 2023

[!] Error: 'fromMiliseconds' is not exported by node_modules/@walletconnect/time/dist/cjs/index.js, imported by node_modules/@walletconnect/relay-auth/dist/esm/api.js
https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module
node_modules/@walletconnect/relay-auth/dist/esm/api.js (3:9)
1: import * as ed25519 from "@stablelib/ed25519";
2: import { randomBytes } from "@stablelib/random";
3: import { fromMiliseconds } from "@walletconnect/time";
            ^
4: import { JWT_IRIDIUM_ALG, JWT_IRIDIUM_TYP, KEY_PAIR_SEED_LENGTH, } from "./constants";
5: import { decodeIss, decodeJWT, encodeData, encodeIss, encodeJWT, } from "./utils";
Error: 'fromMiliseconds' is not exported by node_modules/@walletconnect/time/dist/cjs/index.js, imported by node_modules/@walletconnect/relay-auth/dist/esm/api.js
    at error (/mnt/c/Users/user/proj/myproject/node_modules/rollup/dist/shared/rollup.js:198:30)
    at Module.error (/mnt/c/Users/user/proj/myproject/node_modules/rollup/dist/shared/rollup.js:12555:16)
    at Module.traceVariable (/mnt/c/Users/user/proj/myproject/node_modules/rollup/dist/shared/rollup.js:12914:29)
    at ModuleScope.findVariable (/mnt/c/Users/user/proj/myproject/node_modules/rollup/dist/shared/rollup.js:11566:39)
    at FunctionScope.findVariable (/mnt/c/Users/user/proj/myproject/node_modules/rollup/dist/shared/rollup.js:6486:38)
    at Identifier.bind (/mnt/c/Users/user/proj/myproject/node_modules/rollup/dist/shared/rollup.js:7553:40)
    at CallExpression.bind (/mnt/c/Users/user/proj/myproject/node_modules/rollup/dist/shared/rollup.js:5383:23)
    at CallExpression.bind (/mnt/c/Users/user/proj/myproject/node_modules/rollup/dist/shared/rollup.js:9049:15)
    at AssignmentPattern.bind (/mnt/c/Users/user/proj/myproject/node_modules/rollup/dist/shared/rollup.js:5383:23)
    at FunctionDeclaration.bind (/mnt/c/Users/user/proj/myproject/node_modules/rollup/dist/shared/rollup.js:5379:73)

$ npm ls @walletconnect/time @walletconnect/relay-auth
[email protected] /mnt/c/Users/user/proj/myproject
├─┬ @web3-onboard/[email protected]
│ └─┬ @walletconnect/[email protected]
│   ├─┬ @walletconnect/[email protected]
│   │ ├─┬ @walletconnect/[email protected]
│   │ │ ├─┬ @walletconnect/[email protected]
│   │ │ │ └── @walletconnect/[email protected] deduped
│   │ │ └── @walletconnect/[email protected] deduped
│   │ ├─┬ @walletconnect/[email protected]
│   │ │ └── @walletconnect/[email protected] deduped
│   │ ├── @walletconnect/[email protected]
│   │ └─┬ @walletconnect/[email protected]
│   │   └── @walletconnect/[email protected] deduped
│   ├─┬ @walletconnect/[email protected]
│   │ └─┬ @walletconnect/[email protected]
│   │   └── @walletconnect/[email protected] deduped
│   └─┬ @walletconnect/[email protected]
│     └── @walletconnect/[email protected] deduped
└─┬ @web3-onboard/[email protected]
  └─┬ @walletconnect/[email protected]
    ├─┬ @walletconnect/[email protected]
    │ ├─┬ @walletconnect/[email protected]
    │ │ ├── @walletconnect/[email protected] deduped
    │ │ └── @walletconnect/[email protected] deduped
    │ └── @walletconnect/[email protected] deduped
    └─┬ @walletconnect/[email protected]
      └── @walletconnect/[email protected] deduped
@CherryDT
Copy link
Author

Interestingly, the error isn't always the same. Sometimes it's about ONE_MINUTE or FIVE_MINUTES.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant