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

Bugs / Issues with docs #18

Open
varunv5000 opened this issue Aug 17, 2022 · 1 comment
Open

Bugs / Issues with docs #18

varunv5000 opened this issue Aug 17, 2022 · 1 comment

Comments

@varunv5000
Copy link

The current code here in the docs has given a bug for me:
import PassportReader from "@gitcoinco/passport-sdk-reader"
However, if you do this it works:
import { PassportReader } from "@gitcoinco/passport-sdk-reader"

Also getting this bug here with the passport scorer & verifier:

Module parse failed: magic header not detected
File was processed with these loaders:
* ../../node_modules/file-loader/dist/cjs.js
You may need an additional loader to handle the result of these loaders.
Error: magic header not detected

@lucianHymer
Copy link

First point seems totally valid, but needed to update my webpack config to load WASM modules for your second point. I used create-react-app initially, so I used craco to override the webpack config. Here's my craco config file, the webpack section is the relevant section.

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

2 participants