Lovely package, thanks for dealing with all the crap for us, unfortunately, the TwitchEmbed
doesn't work at all.
I'm running on the latest version of next.js
, on localhost. I tested chat and the others, they work.
I don't see the request for twitch's JS files at all. I am using server-side rendering, since, well, it is, after all, a Next.js app, however, this component isn't SSR, or so I think.
This component loads on every page, very, very early on. Here's the dump , included as an image if you prefer that:
Unhandled Runtime Error
TypeError: Cannot read property 'Embed' of undefined
Call Stack
TwitchEmbed._createEmbed
node_modules\react-twitch-embed\dist\index.es.js (220:0)
TwitchEmbed.componentDidUpdate
/_next/static/chunks/pages/_app.js (46980:21)
commitLifeCycles
node_modules\react-dom\cjs\react-dom.development.js (19835:0)
commitLayoutEffects
/_next/static/chunks/main.js (43099:7)
HTMLUnknownElement.callCallback
node_modules\react-dom\cjs\react-dom.development.js (188:0)
Object.invokeGuardedCallbackDev
/_next/static/chunks/main.js (20533:16)
invokeGuardedCallback
node_modules\react-dom\cjs\react-dom.development.js (292:0)
commitRootImpl
/_next/static/chunks/main.js (42837:9)
unstable_runWithPriority
node_modules\scheduler\cjs\scheduler.development.js (653:0)
runWithPriority$1
/_next/static/chunks/main.js (31335:10)
commitRoot
node_modules\react-dom\cjs\react-dom.development.js (22381:0)
finishSyncRender
/_next/static/chunks/main.js (42103:3)
performSyncWorkOnRoot
node_modules\react-dom\cjs\react-dom.development.js (21793:0)
<unknown>
/_next/static/chunks/main.js (31385:24)
unstable_runWithPriority
node_modules\scheduler\cjs\scheduler.development.js (653:0)
runWithPriority$1
/_next/static/chunks/main.js (31335:10)
flushSyncCallbackQueueImpl
node_modules\react-dom\cjs\react-dom.development.js (11084:0)
flushSyncCallbackQueue
/_next/static/chunks/main.js (31368:3)
flushPassiveEffectsImpl
node_modules\react-dom\cjs\react-dom.development.js (22883:0)
unstable_runWithPriority
/_next/static/chunks/main.js (49289:12)
runWithPriority$1
node_modules\react-dom\cjs\react-dom.development.js (11039:0)
flushPassiveEffects
/_next/static/chunks/main.js (43116:12)
<unknown>
node_modules\react-dom\cjs\react-dom.development.js (22699:0)
workLoop
/_next/static/chunks/main.js (49233:34)
flushWork
node_modules\scheduler\cjs\scheduler.development.js (552:0)
MessagePort.performWorkUntilDeadline
/_next/static/chunks/main.js (48800:27)
I can see that it's calling unknownHTMLElement
which makes me think it failed to load properly at all.