LinaTsukusu / youtube-chat

Fetch YouTube Live chats
MIT License
213 stars 46 forks source link

I get a type error #101

Open taIshikawa opened 9 months ago

taIshikawa commented 9 months ago
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
sky96line commented 5 months ago

Hi @taIshikawa did you resolve this issue? I am facing same issue.