Repository navigation
fix: point the template's react-native entry at lib - #1987
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
The template pointed `react-native` at `src/index`, so Metro compiled a library's `.nitro.ts` specs with the app's Babel config. React Native's default preset can't parse decorators, and bare React Native apps failed with "Support for the experimental syntax 'decorators' isn't currently enabled". `main` and `types` already point at `lib/`. `clean` now also deletes `tsconfig.tsbuildinfo`. The composite build info sits next to `tsconfig.json`, so after `clean` removed `lib/`, `tsc` treated the project as up to date and emitted nothing.
mrousavy
force-pushed
the
mrousavy/template-ship-compiled-js
branch
from
October 23, 2026 18:07
a19f831 to
598b61a
Compare
react-native entry at lib
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The template's
react-nativefield now points atlib/index, likemainandtypesalready do. Withsrc/index, Metro compiled a library's.nitro.tsspecs with the app's Babel config, and React Native's default preset can't parse decorators:nitro-sqlite hit this in margelo/react-native-nitro-sqlite#453.
cleannow also deletestsconfig.tsbuildinfo. The composite build info sits next totsconfig.json, so aftercleanremovedlib/,tsctreated the project as up to date and emitted nothing. I checked this with the template'stsconfig.jsonand TypeScript 6.0.3.🤖 Generated with Claude Code