logdna / logdna-browser

A frontend browser logging and exception capturing library for LogDNA
MIT License
19 stars 14 forks source link

Unable to use in React Native #21

Closed jjalan closed 3 years ago

jjalan commented 3 years ago

I installed the package via:

yarn add @logdna/browser

However, metro complains at runtime while using it

error: Error: While trying to resolve module `@logdna/browser` from file `/Users/user/Developer/app/index.js`, the package `/Users/user/Developer/app/node_modules/@logdna/browser/package.json` was successfully found. However, this package itself specifies a `main` module field that could not be resolved (`/Users/user/Developer/app/node_modules/@logdna/browser/index`. Indeed, none of these files exist:
TerryMooreII commented 3 years ago

@jjalan Currently the browser logger does not support React Native. React Native is something that we are hoping to support in the future but we currently don't have a timeline as to when this will get released. I will let the others on the team know that there is an increased interest in using the browser logger with React Native so they can adjust the timelines as needed.