Skip to content

Unable to run the example app #1451

@yairopro

Description

@yairopro

Describe the bug
The example app does not work.

Code snippet
nothing, just can't run the example app.

Repo for reproducing
kirillzyusko/react-native-keyboard-controller

To Reproduce
Steps to reproduce the behavior:

git clone git@github.com:kirillzyusko/react-native-keyboard-controller.git
cd react-native-keyboard-controller/example
yarn
yarn android
# or yarn dev if already installed

Expected behavior
To work

Screenshots

 BUNDLE  ./index.js 
 ERROR  Error: Unable to resolve module @babel/runtime/helpers/interopRequireDefault from /Users/yair/workspace/sandboxes/react-native-keyboard-controller/src/views/index.ts: @babel/runtime/helpers/interopRequireDefault could not be found within the project.
> 1 | export { default as OverKeyboardView } from "./OverKeyboardView";
  2 | export { default as KeyboardExtender } from "./KeyboardExtender";
  3 |
    at ModuleResolver.resolveDependency (/Users/yair/workspace/sandboxes/react-native-keyboard-controller/example/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:172:15)
    at DependencyGraph.resolveDependency (/Users/yair/workspace/sandboxes/react-native-keyboard-controller/example/node_modules/metro/src/node-haste/DependencyGraph.js:252:43)
    at /Users/yair/workspace/sandboxes/react-native-keyboard-controller/example/node_modules/metro/src/lib/transformHelpers.js:163:21
    at resolveDependencies (/Users/yair/workspace/sandboxes/react-native-keyboard-controller/example/node_modules/metro/src/DeltaBundler/buildSubgraph.js:43:25)
    at visit (/Users/yair/workspace/sandboxes/react-native-keyboard-controller/example/node_modules/metro/src/DeltaBundler/buildSubgraph.js:81:30)
    at async Promise.all (index 1)
    at async visit (/Users/yair/workspace/sandboxes/react-native-keyboard-controller/example/node_modules/metro/src/DeltaBundler/buildSubgraph.js:90:5)
    at async Promise.all (index 7)
    at async visit (/Users/yair/workspace/sandboxes/react-native-keyboard-controller/example/node_modules/metro/src/DeltaBundler/buildSubgraph.js:90:5)
    at async Promise.all (index 2)
Image

Smartphone (please complete the following information):

  • Desktop OS: MacOS
  • Device: Android 16 Simulator
  • OS: Android 16
  • RN version: 0.81.4
  • RN architecture: I let you check the repo
  • JS engine: hermes
  • Library version: branch main

Metadata

Metadata

Assignees

Labels

exampleAnything related to example projectquestionYou wanted to clarify something about the usage of the library or have a question about something

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions