vincentriemer / react-native-dom

An experimental, comprehensive port of React Native to the web.
https://rntester.now.sh
MIT License
3.25k stars 73 forks source link

Refused to execute script bundle from its MIME type ('') is not executable. #100

Closed ysfzrn closed 5 years ago

ysfzrn commented 5 years ago

When I working with DEV mode, this library works succesfully but I want to serve production mode. I followed all instructions. I created dist file. But when I serve , I encountering this error

Refused to execute script from 'http://localhost:5000/entry.bundle?platform=dom&dev=true&hot=true' because its MIME type ('text/plain') is not executable..

How can I deploy my project and serve production mode ?

dutzi commented 5 years ago

In your production server just set the mime type for those files to text/javascript

ysfzrn commented 5 years ago

thanks, I didn't know