Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6211

How to solve syntax error, unexpected token, export type?

$
0
0

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?


Viewing all articles
Browse latest Browse all 6211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>