import {LiveChat} from "youtube-chat";
const liveChat = new LiveChat({ liveId: '4xDzrJKXOOY' });
When executed as above, the following error occurs
youtube-chat.js?t=1708682095513&v=9bbe83e8:2369 Uncaught TypeError: Class extends value undefined is not a constructor or null
at node_modules/youtube-chat/dist/live-chat.js (youtube-chat.js?t=1708682095513&v=9bbe83e8:2369:43)
at __require (chunk-LQ2VYIYD.js?v=9bbe83e8:8:50)
at node_modules/youtube-chat/dist/index.js (youtube-chat.js?t=1708682095513&v=9bbe83e8:2437:23)
at __require (chunk-LQ2VYIYD.js?v=9bbe83e8:8:50)
at youtube-chat.js?t=1708682095513&v=9bbe83e8:2443:16
node_modules/youtube-chat/dist/live-chat.js @ youtube-chat.js?t=1708682095513&v=9bbe83e8:2369
__require @ chunk-LQ2VYIYD.js?v=9bbe83e8:8
node_modules/youtube-chat/dist/index.js @ youtube-chat.js?t=1708682095513&v=9bbe83e8:2437
__require @ chunk-LQ2VYIYD.js?v=9bbe83e8:8
(anonymous) @ youtube-chat.js?t=1708682095513&v=9bbe83e8:2443
Show 5 more frames
Show less
When executed as above, the following error occurs