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.

[v4] SyntaxError in BottomSheetBackdrop.tsx that does not make sense

See original GitHub issue

Bug

Getting

error: SyntaxError: /Users/pkursawe/projects/lego-feature/app/node_modules/@gorhom/bottom-sheet/src/components/bottomSheetBackdrop/BottomSheetBackdrop.tsx: /Users/pkursawe/projects/lego-feature/app/node_modules/@gorhom/bottom-sheet/src/components/bottomSheetBackdrop/BottomSheetBackdrop.tsx: Unexpected token, expected ";" (4:6)

  2 | (() => {
  3 |   opacity: interpolate(animatedIndex.value, [-1, disappearsOnIndex, appearsOnIndex], [0, 0, opacity], Extrapolate.CLAMP),
> 4 |   flex: 1
    |       ^
  5 | }
  6 | )

Just by importing the <BottomSheet> component.

Environment info

Library Version
@gorhom/bottom-sheet 4.1.3
react-native 0.63.3
react-native-reanimated 2.3.0-beta.2
react-native-gesture-handler 1.10.3
// babel.config.js
module.exports = {
  compact: false, // Prevent "The code generator has deoptimised the styling of..."
  presets: ["module:metro-react-native-babel-preset"],
  plugins: [
    [
      "module-resolver",
      {
        root: ["./src"],
        extensions: [".ios.js", ".android.js", ".js", ".ts", ".tsx", ".json"],
        alias: {
          "@components": "./src/components",
          hooks: "./src/hooks",
          stores: "./src/stores",
        },
      },
    ],
    "react-native-reanimated/plugin",
  ],
}

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:6
  • Comments:6

github_iconTop GitHub Comments

3reactions
ivan-mumtakcommented, Mar 30, 2022

someone figured out how to fix it?

3reactions
github-actions[bot]commented, Oct 29, 2021

@pke: hello! 👋

This issue is being automatically closed because it does not follow the issue template.

Read more comments on GitHub >

github_iconTop Results From Across the Web

85 - Stack Overflow
I understand this is a simple issue and an error that I am making but however, I have not been able to resolve...
Read more >
[v4] SyntaxError in BottomSheetBackdrop.tsx that ... - bytemeta
[v4] SyntaxError in BottomSheetBackdrop.tsx that does not make sense #728. Bug. Getting error: SyntaxError: /Users/pkursawe/projects/lego-feature ...
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