-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
TypeError: Cannot read property 'CAPABILITY_PLAY' of null, js engine: hermes #2227
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
Comments
well there u go expo is tje peovlem... |
await TrackPlayer.updateOptions({ |
Expo is not officially supported. Read through old issues, online articles, and the docs. |
same problem.
Is Environment / Version info
(yeah some legacy web in there) |
Hey @nottimnik, you can use expo --dev-client to easily integrate react-native-track-player in Expo. |
@hasnainirfan110 |
Hello, I was having the same problem for Expo running on Android, here what it solved for me:
Then create a eas.json in the root folder: {
"build": {
"development": {
"developmentClient": true,
"distribution": "internal"
},
"preview": {
"distribution": "internal"
},
"production": {}
}
} Then run:
And then just scan de QR Code and you will be fine. I took this from this Medium article from this guy: https://medium.com/@gionata.brunel/implementing-react-native-track-player-with-expo-including-lock-screen-part-2-android-8987e374f965 |
btw i just unplug my speakers while running the code and the error was resolved xd 😂 |
@nandowastaken This worked for me too. Thank you! |
but this builder apk, how to use with expo go for development & debug |
simple, you cannot.
…On Tue, Sep 10, 2024, 6:07 AM Dinesh Chauhan ***@***.***> wrote:
Hello, I was having the same problem for Expo running on Android, here
what it solved for me:
npm install -g eas-cli
npx expo install expo-dev-client
Then create a eas.json in the root folder:
{
"build": {
"development": {
"developmentClient": true,
"distribution": "internal"
},
"preview": {
"distribution": "internal"
},
"production": {}
}
}
Then run:
eas build --profile development --platform android
And then just scan de QR Code and you will be fine. I took this from this
Medium article from this guy:
***@***.***/implementing-react-native-track-player-with-expo-including-lock-screen-part-2-android-8987e374f965
He wrote one for iOS as well:
***@***.***/implementing-react-native-track-player-with-expo-including-lock-screen-part-1-ios-9552fea5178c#:~:text=All%20you%20need%20to%20do,Native%20Track%20Player%20with%20Expo
.
but this builder apk, how to use with expo go for development & debug
—
Reply to this email directly, view it on GitHub
<#2227 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZMOVVRUDRDZE33XGOXEYMTZV3VKDAVCNFSM6AAAAABBFZ2LMCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNBQG4YTAMZXHE>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
I did nothing more then just trying to import TrackPlayer:
import { TrackPlayer } from "react-native-track-player";
and I get this error:
TypeError: Cannot read property 'CAPABILITY_PLAY' of null, js engine: hermes
I can't do anything else because if I try to follow any of the instructions from docs I get this error, so I can't work with the package. BTW I use expo.
The text was updated successfully, but these errors were encountered: