I was using version 2.x
of react-navigation
, now I'm migrating to version 5.x
. I have installed all modules according to the documentation, but on running the application, I get this error.
It seems more like a typescript compilation error, but I'm not sure why it appeared, as I simply ran npm install
command and have not touched any node_module
files.
error: SyntaxError: E:\PROJECTS\rnzone\BoxApp\node_modules\@react-navigation\stack\src\index.tsx: Unexpected token (51:12) 49 | * Types 50 | */> 51 | export type { | ^ 52 | StackNavigationOptions, 53 | StackNavigationProp, 54 | StackHeaderProps,
What do you suggest?