Unexpected token in createHandler.ts
See original GitHub issueDescription
error: SyntaxError: /Users/skodsgn/bmind/projects/smogity-mobile-app/node_modules/react-native-gesture-handler/src/handlers/createHandler.ts: Unexpected token (11:12)
9 | import deepEqual from 'fbjs/lib/areEqual';
10 | import RNGestureHandlerModule from '../RNGestureHandlerModule';
> 11 | import type RNGestureHandlerModuleWeb from '../RNGestureHandlerModule.web';
| ^
12 | import { State } from '../State';
13 |
14 | import {
Screenshots
Package versions
- React: 16.12.0
- React Native: 0.63.4
- React Native Gesture Handler: 1.10.1
- Typescript: 4.1.5
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (5 by maintainers)
Top Results From Across the Web
Developers - Unexpected token in createHandler.ts -
... /Users/skodsgn/bmind/projects/smogity-mobile-app/node_modules/react-native-gesture-handler/src/handlers/createHandler.ts: Unexpected ...
Read more >compiler errors - Typescript unexpected token - Stack Overflow
I use for compilation ts-node package. But it can't complile jsx. My tsconfig.json have jsx compile option. mocha --compilers ts:ts-node/ ...
Read more >SyntaxError: Unexpected token - JavaScript - MDN Web Docs
The JavaScript exceptions "unexpected token" occur when a specific language construct was expected, but something else was provided.
Read more >JavaScript Error Handling: Unexpected Token - GeeksforGeeks
Unexpected token is similar to syntax error but more specific.Semicolon(;) in JavaScript plays a vital role while writing a programme. Usage: To ...
Read more >How I Fixed The Unexpected Token Error In Jest
I have a CRA TS app and was getting import error for axios while testing. I updated the test script to react-scripts test...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello i’ve solved this issue with updating
@babel/core
and@babel/runtime
dependencies.I hope it helps.
This fixed for me. Thank you.