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

Issue loading passport-sdk-writer #19

Open
lucianHymer opened this issue Sep 8, 2022 · 0 comments
Open

Issue loading passport-sdk-writer #19

lucianHymer opened this issue Sep 8, 2022 · 0 comments

Comments

@lucianHymer
Copy link

I'm able to work with Reader, Verifier, and Scorer just fine.

But, I cannot load the Writer module.

At first I got an error about mjs files, but I modified webpack to tell it how to load these (craco used in this example)

...
webpackConfig.module.rules.push({
        test: /\.mjs$/,
        include: /node_modules/,
        type: "javascript/auto",
      })
...

I think I did the right thing there.

But now I get the following error:/
image

I've been stuck here. I notice that the package.json for passport-sdk-writer has "dist/esm/src/index.js" as main, but I don't have that esm directory. I think that's the crux of the issue.

I wonder if this is all related, since it all seems to do with modules? If I hack that package.json and remove "esm" from the path, it actually seems to be working (or at least building and running, I haven't successfully written yet), but that seems very wrong haha.

Is it possible that something got left out of the NPM publish? Or do the devs for this have something set up in their environment that makes this work? Or am I just missing something?

Thank you!

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