Patreon / patreon-js

Use the Patreon API via OAuth.
MIT License
154 stars 30 forks source link

Can't resolve 'os' #29

Open ErraticFox opened 5 years ago

ErraticFox commented 5 years ago

Hello, I'm not quite sure why I'm getting this error. I'm using TypeScript and this is what I have:

import { patreon as patreonAPI, oauth as patreonOAuth } from 'patreon'

Though once I call const patreonOAuthClient = patreonOAuth(CLIENT_ID, CLIENT_SECRET) and I build my application (Electron with Angular2), I get this error

ERROR in ./node_modules/patreon/dist/utils.js
Module not found: Error: Can't resolve 'os' in 'C:\Users\errat\Documents\Projects\Electron\angular-electron\node_modules\patreon\dist'
brettdh commented 5 years ago

Same issue, but using React Native.