-
-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Closed
Labels
Description
Is this a bug report?
I think so.
Did you try recovering your dependencies?
Yes.
Environment
$ yarn start
Steps to Reproduce
- Download any video in MP4 format and put in somewhere.
- Try import in some component:
import videoUrl from '../../videos/video.mp4';
const VideoItem = () => <video controls><source src={videoUrl} type='video/mp4' /></video>
export default VideoItem;
Expected Behavior
Page load asset like image do.
Actual Behavior
$ TypeScript error: Cannot find module '../../videos/video.mp4'. TS2307
Comment
I think this is an problem from webpack, but how i can import without eject?