question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

React-native 0.48.1 content-type issue

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
joearasincommented, Sep 11, 2017

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

1reaction
grabboucommented, Sep 8, 2017

Fixed in master, release pending. Thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found