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 bundle?

See original GitHub issue

I’m trying to create a complete build to generate .ipa / .apk files.

The README specifies that tsc will not actually generate a build. I believe this is probably because of the noEmit rule in tsconfig.json.

I’m trying to use --transformer as well which appears to be an undocumented flag for build, but then I get this output:

Unable to resolve module `./src/App` from `/Users/acrites/projects/personal/rnts3/index.js`: The module `./src/App` could not be found from `/Users/acrites/projects/personal/rnts3/index.js`. Indeed, none of these files exist:

  * `/Users/acrites/projects/personal/rnts3/src/App(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json)`
  * `/Users/acrites/projects/personal/rnts3/src/App/index(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json)`

--sourceExts is not a flag for build.

Is there any way to generate a bundle with a react-native TypeScript project using this transformer? If so, should this be documented in the README?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ds300commented, Feb 26, 2018

I added a note about the --config option to the readme, so will close this issue for now. Please feel free to open it again if you’re still having troubles.

1reaction
petekpcommented, Feb 11, 2018

@ds300 Yep, the --config option did the trick. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

RAM Bundles and Inline Requires - React Native
We can optimize the loading of the bundle by using the RAM format and requiring those features and screens inline (when they are...
Read more >
What is React Native's bundle, and its purpose? - Stack Overflow
The bundle is indeed 'the javascript'. In development the bundle likely will come from your react-native start development server. That way if your...
Read more >
Bundling | React Native Developer Tools
When you're done here, you'll be able to bundle and ship your apps with Metro, the React Native bundler. The tools you'll use...
Read more >
Bundling React Native during Android release builds
These basically call `react-native bundle` with the correct arguments during the Android build * cycle. By default, bundleDebugJsAndAssets ...
Read more >
Bundling React Native during Android release builds
Older versions of React Native's docs (0.19) recommended running the bundling command manually before building your app if you don't have a react.gradle...
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