Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[router] include ctx-shared.js in package files #27741

Conversation

chriszs
Copy link

@chriszs chriszs commented Mar 19, 2024

Why

Fixes the failure documented in #27740 wherein typed route generation failed to find an import called ctx-shared in the Expo Router canary package.

How

Includes the ctx-shared.js file used by typed route generation in the expo-router package files by adding it to the explicit list of included files in package.json.

Test Plan

To test I started with my minimal reproduction (in which npm start fails), downloaded ctx-shared.js, moved it into node_modules/expo-router/ and, added an empty /app directory to satisfy an unrelated failure, then ran npm start again (successfully). Test process demonstrated with patch-package here.

Fixes an issue where typed routes would fail to generate
@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Mar 19, 2024
@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Mar 19, 2024
@chriszs chriszs changed the title fix(router): include ctx-shared in package files fix(router): include ctx-shared.js in package files Mar 19, 2024
@chriszs chriszs changed the title fix(router): include ctx-shared.js in package files [router]: include ctx-shared.js in package files Mar 19, 2024
@chriszs chriszs changed the title [router]: include ctx-shared.js in package files [router] include ctx-shared.js in package files Mar 19, 2024
@chriszs
Copy link
Author

chriszs commented Mar 20, 2024

@marklawlor is addressing this in #27690.

@chriszs chriszs closed this Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: passed checks ExpoBot has nothing to complain about
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants