New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cordova + React: having a HARD time #307
Comments
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you label it "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
I'll take a look on what's going on, but yeah the versioning is wrong due to this issue #306 It should be fixed on te next version EDIT: Are you using an Mac device with ARM processor? |
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you label it "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
@lucas-zimerman, I stepped away for some time, but finally came back to this. Indeed, the reported problem seems fixed! However, there's still #311 which is causing trouble with compiling and further blocks deployment to iTunes Connect :( |
We've got a React app which both runs on the web browser and inside a Cordova shell. We included Sentry in both sides, but initially I was facing an error similar to getsentry/sentry-javascript#2622. The suggestion there was to make sure dependencies on both sides match, since this Cordova package is a bit outdated.
I'm back to the topic and I'm not really sure what's going on, since cordova-cli behaves weirdly and, in the end, I'm not able to properly compile my app.
Before my new actions, my package.json only had an empty object at
cordova.plugins.sentry-cordova
. No other mentions, besides the usualsentry.properties
file.Then, after a bunch of back and forth between
npx cordova rm sentry-cordova
and re-adding it to try to get the correct versions, I'm stuck with the same "consistent/broken" results, as follows:sentry is not present in package.json nor lockfile, and there's no sentry.properties
npx cordova add sentry-cordova
:npx cordova add sentry-cordova
again, right after the error above: works fine, with that very cool wizard asking which project from Sentry I want to link this install to. It says it installed version 1.4.0, with sentry-cli v1.75.0. The version insidepackage.json
is^1.1.4
, andcordova.plugins.sentry-cordova
now includesSENTRY_ANDROID_SDK_VERSION: 6.11.0
. No clue what I did before that didn't include those details, but I can swear I just ran whatever is instructed in the docs - which is, you guessed,cordova plugin add sentry-cordova
, the same I did. However, while trying to fix versions I have also runcordova plugin add sentry-cordova@1.1.4
, so I wonder if since then it's always finding this "correct"(?) version and installing it all correctly... One thing I noticed, though, is that there's no entry forsentry-cordova
at my project's config.xml 🤔 Adding it manually makes no difference on the next step, though.well, then I try to run the project and it fails, complaining about target version mismatches, right after some sort of "framework patching":
relevant(?) part from console output
then I try to remove the plugin via
npx cordova plugin rm sentry-cordova
, which fails in the Sentry Wizard (does it expect to be uninstalled?):Sentry uninstall output
Environment
Extras
plugin.xml
still lists the its version as 1.0.0-rc.0The text was updated successfully, but these errors were encountered: