panva / openid-client

OAuth 2 / OpenID Connect Client API for JavaScript Runtimes
MIT License
1.83k stars 392 forks source link

Not universal/isomorphic compatible #212

Closed roggervalf closed 4 years ago

roggervalf commented 4 years ago

Describe the bug It is not universal/isomorphic compatible, that means they can't use the fs module and other non-universal modules (net, http, etc.).

To Reproduce Import generators in page inside nextjs pages

Import {generators} from "openid-client"

Additional context Error ./node_modules/got/source/utils/get-body-size.js Module not found: Can't resolve 'fs' in '/home/rogger/Documentos/oidc-server/node_modules/got/source/utils'

panva commented 4 years ago

It’s not intended to be. Please read the docs, the intended runtime is Node.js and Electron