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
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
Thanks, MeLo