OK - I was able to fix this issue by deleting ~/.next. Seems like a build cache bug. Latest version removed routing-items.js but cached build files still require it?
Had the same issue and this fixed for me as well 👍
D-Pagey issue comment vercel/next.js
OK - I was able to fix this issue by deleting ~/.next. Seems like a build cache bug. Latest version removed routing-items.js but cached build files still require it?
Had the same issue and this fixed for me as well 👍
D-Pagey issue comment react-navigation/react-navigation
Trying to type a Tab Navigator as a parent of a Stack Navigator. Followed the docs on Typescript - https://reactnavigation.org/docs/typescript/
When I use my type helper that utilises CompositeScreenProps
, my route
prop is typed but my navigation prop is:
Here are the only types I use:
I'd expect my navigation.navigate
to be typed when using CompositeScreenProps
.
Repo - https://github.com/D-Pagey/react-navigation-repro/blob/main/types/navigation.ts
File that is typed incorrectly - https://github.com/D-Pagey/react-navigation-repro/blob/main/types/navigation.ts
package | version |
---|---|
@react-navigation/native | 6.0.8 |
@react-navigation/bottom-tabs | 6.3.1 |
@react-navigation/stack | 6.2.1 |
@react-navigation/native-stack | 6.5.0 |
react-native-safe-area-context | 3.3.2 |
react-native-screens | 3.10.1 |
react-native | 0.64.3 |
expo | 44.0.0 |
node | 14.18.2 |
npm or yarn | 1.22.17 |
D-Pagey in D-Pagey/react-navigation-repro create repository
D-Pagey issue react-navigation/react-navigation
Trying to type a Tab Navigator as a parent of a Stack Navigator. Followed the docs on Typescript - https://reactnavigation.org/docs/typescript/
When I use my type helper that utilises CompositeScreenProps
, my route
prop is typed but my navigation prop is:
Here are the only types I use:
I'd expect my navigation.navigate
to be typed when using CompositeScreenProps
.
https://snack.expo.dev/@dpagey/navigation-type-repro
package | version |
---|---|
@react-navigation/native | 6.0.8 |
@react-navigation/bottom-tabs | 6.3.1 |
@react-navigation/stack | 6.2.1 |
@react-navigation/native-stack | 6.5.0 |
react-native-safe-area-context | 3.3.2 |
react-native-screens | 3.10.1 |
react-native | 0.64.3 |
expo | 44.0.0 |
node | 14.18.2 |
npm or yarn | 1.22.17 |
Updating from 12.1.4 to 12.1.5: Error: Cannot find module 'next/dist/shared/lib/router/utils/routing-items.js'
Verify canary release
Provide environment information
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
After updating from 12.1.4 => 12.1.5 (and 12.1.6-canary.3) I get this build error. Downgrading back to 12.1.4 resolves the issue.
node:internal/modules/cjs/loader:933 const err = new Error(message); ^
Error: Cannot find module 'next/dist/shared/lib/router/utils/routing-items.js' Require stack:
Expected Behavior
Build correctly
To Reproduce
See stack trace, 'next/dist/shared/lib/router/utils/routing-items.js' is missing from node_modules.