Skip to content

[BUG] - Can we use this library in a non TypeScript React Native app? #324

@fabrii

Description

@fabrii

Current Behavior

When importing the library, I am getting udefined error.

Examples:

import didJWT from 'did-jwt';
ERROR  [TypeError: _didJwt.default.EdDSASigner is not a function (it is undefined)]
import { EdDSASigner, createJWT } from 'did-jwt';
ERROR  [TypeError: 0, _didJwt.EdDSASigner is not a function (it is undefined)]

I also tried with require, and import * from, but I always get the undefined error.

In did-jwt 6.10.0 I am able to import the library like this:

import didJWT from 'did-jwt/dist/did-jwt.js';

But that type of import is not allowed in 7.x and 8.x branches.

Expected Behavior

Being able to import the library in a React Native Expo project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions