You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at the relevant directory in node-modules, I don't see _ctx-shared, but I do see it in GitHub, which leads me to believe it's being excluded by the explicit list of included files in Expo Router's package.json. If so, this should be an easy fix: just add that file to the package.json files list.
chriszs
changed the title
[expo-router] [SDK51] Cannot find module '../../_ctx-shared' when compiling typed routes in canary
[router] Cannot find module '../../_ctx-shared' when compiling typed routes in canary
Mar 19, 2024
Thank you for filing this issue!
This comment acknowledges we believe this may be a bug and there’s enough information to investigate it.
However, we can’t promise any sort of timeline for resolution. We prioritize issues based on severity, breadth of impact, and alignment with our roadmap. If you’d like to help move it more quickly, you can continue to investigate it more deeply and/or you can open a pull request that fixes the cause.
Minimal reproducible example
chriszs/test-expo-app#3
Which package manager are you using? (Yarn is recommended)
npm
If the issue is web-related, please select the bundler (
web.bundler
in theapp.json
)metro
Summary
I get the following error after upgrading Expo and Expo Router to canary and running
npm start
with experimental typed route support turned on:The issue occurs on line 10 of
expo-router/build/typed-routes/index.js
:Looking at the relevant directory in
node-modules
, I don't see_ctx-shared
, but I do see it in GitHub, which leads me to believe it's being excluded by the explicit list of included files in Expo Router's package.json. If so, this should be an easy fix: just add that file to the package.json files list.Environment
The text was updated successfully, but these errors were encountered: