cjam / react-native-spotify-remote

React Native wrapper around the Spotify Remote SDK
MIT License
258 stars 101 forks source link

TypeError when running initial example #221

Open deniskristak opened 1 year ago

deniskristak commented 1 year ago

Hello, first of all, thanks for the package, it looks amazing and like just what I'd need. However, I tried to run the example project, doing the following.

  1. cloned the repo
  2. went to spotify dev dashboard, created app, copied all the relevant info to ./example/.env/ and ./example-server/.env (as per instructions)
  3. installed all dependencies with yarn
  4. ran yarn start in the ./example-server Response:
    warning package.json: No license field
    $ node index.js
    Example app listening on port 3000!
  5. ran yarn start --reset-cache --verbose in the ./example folder Response:
    
    [Thu Dec 22 2022 13:37:15.221]  BUNDLE  ./index.js 

[Thu Dec 22 2022 13:37:58.905] ERROR TypeError: Cannot read property 'authorize' of null, js engine: hermes [Thu Dec 22 2022 13:37:58.909] ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication), js engine: hermes


Screenshot of the emulator
![Screenshot from 2022-12-22 13-36-30](https://user-images.githubusercontent.com/35582739/209136180-b4d52099-08fd-4d5b-833c-391a8beea45a.png)

Also, this is output of `npx react-native info`

info Fetching system and libraries information... System: OS: Linux 5.19 Ubuntu 22.10 22.10 (Kinetic Kudu) CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz Memory: 5.15 GB / 31.08 GB Shell: 5.2.2 - /bin/bash Binaries: Node: 16.13.0 - ~/.nvm/versions/node/v16.13.0/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 8.1.0 - ~/.nvm/versions/node/v16.13.0/bin/npm Watchman: Not Found SDKs: Android SDK: API Levels: 29, 31, 33 Build Tools: 28.0.3, 30.0.3, 31.0.0, 33.0.0 System Images: android-31 | Google APIs Intel x86 Atom_64, android-31 | Google Play Intel x86 Atom_64 Android NDK: Not Found IDEs: Android Studio: Not Found Languages: Java: 11.0.17 - /usr/bin/javac Python: 3.10.7 - /usr/bin/python npmPackages: @react-native-community/cli: Not Found react: 16.13.1 => 16.13.1 react-native: 0.63.4 => 0.63.4 npmGlobalPackages: react-native: Not Found



and this is what my emulator device looks like:
![image](https://user-images.githubusercontent.com/35582739/209137377-c71e5180-8b8d-4f5d-b3c6-f6d9c0c78df0.png)

Do you have any idea what might be wrong here?
Please let me know if you need any additional information.
theshadowagent commented 1 year ago

Same here with expo 47