#how to only import a package on client side? i am getting this error :

1 messages · Page 1 of 1 (latest)

pale marsh
#

node_modules/phaser/src/polyfills/requestVideoFrame.js (3:0) @ eval
⨯ ReferenceError: HTMLVideoElement is not defined

devout whaleBOT
#

Hi @pale marsh. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

Hmm, I don't know enough to give you a confident answer yet. The error you're encountering seems to be related to the Phaser library and the HTMLVideoElement API, which is not directly related to Next.js. However, Next.js does support the use of polyfills for certain features. You can check the Next.js documentation on polyfills (https://nextjs.org/docs/architecture/supported-browsers) for more information.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: