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

Using within a create-react-app give a "classPrivateProperties isn't currently enabled" error #431

Closed
lecoqlibre opened this issue Nov 26, 2021 · 1 comment

Comments

@lecoqlibre
Copy link

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:

npx create-react-app my-app
cd my-app
yarn add openid-client

Add the following code into 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

@panva
Copy link
Owner

panva commented Nov 26, 2021

There's nothing experimental and this is a Node.js only package.

@github-actions github-actions bot locked and limited conversation to collaborators Feb 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants