React-native 0.48.1 content-type issue
See original GitHub issueI just upgraded what is effectively a Hello World react-native app + Haul to react-native 0.48.1, and now upon launching I am getting an error in my simulator:
Expected Content-Type to be ‘application/javascript’ or ‘text/javascript’ but got ‘application/octet-stream; charset=UTF-8’
My assumption is that https://github.com/facebook/react-native/blob/v0.48.1/React/Base/RCTJavaScriptLoader.mm#L247 is tripping on something in haul, as running curl -v -D - http://localhost:8081/index.ios.bundle -o /dev/null indicates that the content-type of my bundle is indeed Content-Type: application/octet-stream; charset=UTF-8.
Your Environment
| software | version |
|---|---|
| Haul | 1.0.0-beta.5 |
| react-native | 0.48.1 |
| node | 8.4.0 |
| npm or yarn | 0.27.5 |
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:9 (7 by maintainers)
Top Results From Across the Web
React Native 0.48 - `scrollview has no proptype for native
When the migration is complete, you will access your Teams at stackoverflowteams.com, and they will no longer appear in the left sidebar on ......
Read more >React Native versions
React Native versions. Open source React Native releases follow a release train that is coordinated on GitHub through the react-native-releases repository.
Read more >Introducing Hooks - React
React 16.8.0 is the first release to support Hooks. When upgrading, don't forget to update all packages, including React DOM. React Native has...
Read more >types/react-native/index.d.ts - UNPKG
The CDN for @types/react-native. ... 1, // Type definitions for react-native 0.67 ... 1638, * Callback that is called when the text input's...
Read more >react-native-blob-util - npm
A module provides upload, download, and files access API. Supports file stream read/write for process large files.. Latest version: 0.17.0, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Things are broken in master pending https://github.com/facebook/react-native/issues/15791 being fixed.
Fixed in master, release pending. Thanks!