Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requiring unknown module "2537" #2367

Closed
jerome-whatson opened this issue Sep 4, 2024 · 3 comments · Fixed by #2299
Closed

Requiring unknown module "2537" #2367

jerome-whatson opened this issue Sep 4, 2024 · 3 comments · Fixed by #2299
Labels

Comments

@jerome-whatson
Copy link

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

@YajanaRao
Copy link

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");

@puckey
Copy link
Collaborator

puckey commented Nov 7, 2024

@jspizziri perhaps you have an idea on this

@jspizziri
Copy link
Collaborator

@YajanaRao were you able to confirm that my fix here resolves your issue? #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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants