cjam / cjam/react-native-spotify-remote
TypeError when running initial example
- Dominant language
- Objective-C
- Stars
- 283
- Forks
- 110
- PR merge metrics
- No merged PRs in 30d
Description
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:
```yarn run v1.22.19
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

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:

Do you have any idea what might be wrong here?
Please let me know if you need any additional information.
Contributor guide
Research direction
Reproduce the report by following the setup in the example and example-server directories, including the .env files and the yarn start commands. Start with example-server/index.js and the React Native startup path that produces the null authorize error; done means the initial example launches without the TypeError or AppRegistry failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, react-native
- Domain
- backend, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100