alancting / react-cas-client

Simple CAS Client for ReactJS for Apereo CAS server (CAS 2.0 and 3.0 protocol)
MIT License
8 stars 11 forks source link

Error when import "react-cas-client" #16

Open MeLoBeats opened 1 year ago

MeLoBeats commented 1 year ago

Hi,

When i want to import the library, i automatically catch this error :

sax.js:222 Uncaught TypeError: Cannot read properties of undefined (reading 'prototype') at sax.js:222:46 at node_modules/sax/lib/sax.js (sax.js:1565:1) at require (chunk-OL3AADLO.js?v=42ae18b2:9:50) at Object. (parser.js:9:9) at node_modules/xml2js/lib/parser.js (parser.js:381:4) at __require (chunk-OL3AADLO.js?v=42ae18b2:9:50) at Object. (xml2js.js:12:12) at node_modules/xml2js/lib/xml2js.js (xml2js.js:39:4) at require (chunk-OL3AADLO.js?v=42ae18b2:9:50) at index.js:3:16

I'm on react 18.2.0 and ViteJS

image

Thanks, MeLo

MeLoBeats commented 1 year ago

image