passport-sdk
passport-sdk copied to clipboard
Bugs / Issues with docs
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
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.