Comments (2)
Thanks for this, @spawnia! I have looked into the issue and found that everything actually still works. To solve the error I encountered I simply had to add @sentry/browser
as a dependency alongside @sentry/react-native
. This is not a problem, as @sentry/react-native
already depends on @sentry/browser
.
More details:
@sentry/browser
is a dependency of@sentry/react-native
.- However when
apollo-link-sentry
started to import from@sentry/browser
, I started to seeUnable to resolve module @sentry/browser from node_modules/apollo-link-sentry/lib/SentryLink.js
. - The reason for this is that yarn does not hoist peer dependencies i.e.
# this is how my node_modules looked like: my-project/node_modules/ @sentry/react-native/ node_modules/ @sentry/browser # this is how they should have looked like: my-project/node_modules/ @sentry/react-native @sentry/browser
- To solve the issue I had to add
@sentry/browser
as a dependency of my project alongside@sentry/react-native
.
I hope this helps some other people use the library. Sorry for the fuss!
from apollo-link-sentry.
I tried to minimize usage of @sentry/browser
in #430, but found it necessary for testing and the utility functions excludeGraphQLFetch
and withoutGraphQLFetch
. Perhaps you can try and pull things apart so this library is compatible?
from apollo-link-sentry.
Related Issues (20)
- Specify level for sentry enrichments HOT 3
- Question: Possible to only attach breadcrumbs when an error occurs? HOT 1
- Question: recommended way to limit size of breadcrumbs? HOT 1
- excludeGraphQLFetch should remove unsupported fragment definitions HOT 2
- Maintainership of this package HOT 8
- Test usage with subscriptions HOT 3
- Test usage with `apollo-link-error` HOT 2
- Missing dependencies on NextJS build
- Add sentry-trace header HOT 4
- Severity is undefined HOT 4
- Create-React-App warns about missing SourceMap HOT 1
- Remove peer dependencies HOT 1
- Importing apollo-link-sentry package gives 350kb of unwanted and unused code. HOT 5
- Transform function can change response for downstream links HOT 2
- Missing Typescript types for zen-observable in non-dev installation HOT 2
- Remove specific param from gql mutations HOT 1
- Enable `apollo-link-sentry` tree-shaking via ESM HOT 1
- Add the "@sentry/browser" package to the dependencies section in your package.json file, not in devDependencies HOT 3
- Can't use package without supporting esnext
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apollo-link-sentry.