react-native-track-player icon indicating copy to clipboard operation
react-native-track-player copied to clipboard

Requiring unknown module "2537"

Open jerome-whatson opened this issue 1 year ago • 1 comments

Describe the Bug Can't setup on web

Steps To Reproduce When i call await TrackPlayer.setupPlayer();

Code To Reproduce await TrackPlayer.setupPlayer(); on web

Replicable on Example App? Can you replicate this bug in the React Native Track Player Example App?

Environment Info: System: OS: macOS 14.4.1 CPU: (10) arm64 Apple M1 Pro Memory: 1.01 GB / 32.00 GB Shell: version: "5.9" path: /bin/zsh Binaries: Node: version: 20.10.0 path: ~/.nvm/versions/node/v20.10.0/bin/node Yarn: version: 1.22.22 path: ~/.nvm/versions/node/v20.10.0/bin/yarn npm: version: 10.2.3 path: ~/.nvm/versions/node/v20.10.0/bin/npm Watchman: version: 2023.12.04.00 path: /opt/homebrew/bin/watchman Managers: CocoaPods: version: 1.14.3 path: /Users/jeromelebleu/.rvm/gems/ruby-3.2.2/bin/pod SDKs: iOS SDK: Platforms: - DriverKit 23.5 - iOS 17.5 - macOS 14.5 - tvOS 17.5 - visionOS 1.2 - watchOS 10.5 Android SDK: Not Found IDEs: Android Studio: 2023.1 AI-231.9392.1.2311.11255304 Xcode: version: 15.4/15F31d path: /usr/bin/xcodebuild Languages: Java: version: 17.0.9 path: /usr/bin/javac Ruby: version: 3.2.2 path: /Users/jeromelebleu/.rvm/rubies/ruby-3.2.2/bin/ruby npmPackages: "@react-native-community/cli": Not Found react: installed: 18.2.0 wanted: 18.2.0 react-native: installed: 0.74.5 wanted: 0.74.5 react-native-macos: Not Found npmGlobalPackages: "react-native": Not Found Android: hermesEnabled: true newArchEnabled: false iOS: hermesEnabled: false newArchEnabled: false

Paste the exact react-native-track-player version you are using : 4.1.1-nightly-9ff32f0f5a7b4f96900bf422810d587f5d2e3789

Real device? Or simulator? Web

What OS are you running? MacOS 14

jerome-whatson avatar Sep 04 '24 05:09 jerome-whatson

I am facing the same issue on web: image

Importing the player before setupPlayer method fixes the issue

const shaka = require("shaka-player/dist/shaka-player.ui");

YajanaRao avatar Sep 28 '24 16:09 YajanaRao

@jspizziri perhaps you have an idea on this

puckey avatar Nov 07 '24 11:11 puckey

@YajanaRao were you able to confirm that my fix here resolves your issue? https://github.com/doublesymmetry/react-native-track-player/pull/2299

I suspect that your issue is related, buts o far, I haven't gotten anyone (other than myself) to confirm that it results I've gotten. If you could send me a minimal repro of your issue I could do the confirmation for you.

@jerome-whatson same goes for you.

jspizziri avatar Nov 07 '24 12:11 jspizziri