Closed lecoqlibre closed 2 years ago
Hi, when I try to use this library within a new Create React App project I get the following error :
/node_modules/openid-client/lib/client.js: Support for the experimental syntax 'classPrivateProperties' isn't currently enabled (163:3)
It seems that you are publishing experimental features on npm.
Is that intentional? Please consider reading this issue: Please don’t publish experimental syntax on npm.
Thanks.
npx create-react-app my-app cd my-app yarn add openid-client
Add the following code into src/App.js:
src/App.js
import { Issuer } from 'openid-client'; const googleIssuer = Issuer.discover('https://accounts.google.com'); console.log('Discovered issuer %s %O', googleIssuer.issuer, googleIssuer.metadata);
Run yarn start
yarn start
There's nothing experimental and this is a Node.js only package.
Hi, when I try to use this library within a new Create React App project I get the following error :
/node_modules/openid-client/lib/client.js: Support for the experimental syntax 'classPrivateProperties' isn't currently enabled (163:3)
It seems that you are publishing experimental features on npm.
Is that intentional? Please consider reading this issue: Please don’t publish experimental syntax on npm.
Thanks.
How to reproduce this issue:
Add the following code into
src/App.js
:Run
yarn start