question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unexpected token in createHandler.ts

See original GitHub issue

Description

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

Zrzut ekranu 2021-02-19 o 11 30 47

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:closed
  • Created 3 years ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

15reactions
bahtiyarerdencommented, Mar 11, 2021

Hello i’ve solved this issue with updating

@babel/core and @babel/runtime dependencies.

I hope it helps.

0reactions
thahaaccommented, Nov 6, 2021

Hello i’ve solved this issue with updating

@babel/core and @babel/runtime dependencies.

I hope it helps.

This fixed for me. Thank you.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found