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

bug: not importing in jest #299

Open
NikZak opened this issue Jul 15, 2024 · 0 comments
Open

bug: not importing in jest #299

NikZak opened this issue Jul 15, 2024 · 0 comments

Comments

@NikZak
Copy link

NikZak commented Jul 15, 2024

I have this in my file

import { base64url } from 'multiformats/bases/base64';

I run jest for testing and get this error

  ● Test suite failed to run

    Cannot find module 'multiformats/bases/base64' from 'packages/bbsVC/src/rdfCanonicalize.ts'
...
    > 6 | import { base64url } from 'multiformats/bases/base64';
        | ^
...
      at Resolver._throwModNotFoundError (node_modules/.pnpm/[email protected]/node_modules/jest-resolve/build/resolver.js:427:11)
      ...

Why is it not importing?

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