passport-sdk icon indicating copy to clipboard operation
passport-sdk copied to clipboard

Bugs / Issues with docs

Open varunv5000 opened this issue 2 years ago • 1 comments

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

varunv5000 avatar Aug 17 '22 20:08 varunv5000

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.

lucianHymer avatar Sep 08 '22 16:09 lucianHymer