I tried multiple ways to display a local video from assets folder but I'm getting the same error
./assets/videos/video.mp4 Module parse failed: Unexpected character '' (1:0) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file.
I tried to add it like this
<video src={require("./../assets/videos/video.mp4").default} />
but it didn't work.