-
Notifications
You must be signed in to change notification settings - Fork 19
Closed
Labels
Description
After upgrading @octokit/rest
from 16.22.0
to 16.43.1
support for react native was broken. The issue seems to come from universal-user-agent
that is using some node-specific packages.
First error
Unable to resolve module
os from "node_modules/os-name/index.js"
Cause:
universal-user-agent/src/node.ts
Line 1 in d671405
import osName from "os-name"; |
Second error
TypeError: undefined is not an object (evaluating 'process.version.substr')
Cause:
universal-user-agent/src/node.ts
Line 5 in d671405
return `Node.js/${process.version.substr(1)} (${osName()}; ${ |
If you make the react-native target be the same as web
it will not crash but navigator.userAgent
is undefined. You can get the Platform.OS
from react-native
.