expo-cli icon indicating copy to clipboard operation
expo-cli copied to clipboard

postPublish hook broken for sentry-expo/upload-sourcemaps

Open tomodian opened this issue 8 years ago • 6 comments

Hi, I just updated to expo-cli from exp and seeing this error.

app.json (excerpt, unchanged since using exp)

{
  "expo": {
    "hooks": {
      "postPublish": [
        {
          "file": "sentry-expo/upload-sourcemaps",
          "config": {
            "organization": "myapp",
            "project": "mobile",
            "authToken": "sometoken"
          }
        }
      ]
    }
  }
}

Please note that the file exists in ./node_modules/sentry-expo/upload-sourcemaps.js.

Error

This is the error when try to publish my app.

[20:28:28] Unable to load postPublishHook: 'sentry-expo/upload-sourcemaps'
[20:28:28] Please fix your postPublish hook configuration.

It would be great to hear how could I get Sentry back to the streamline.

tomodian avatar Sep 19 '18 11:09 tomodian

I am getting this error as well.

bsoung avatar Dec 10 '18 19:12 bsoung

Same here

[20:41:07] Unable to load postPublishHook: 'sentry-expo/upload-sourcemaps'. The module does not export a function. [20:41:08] Please fix your postPublish hook configuration.

brucedesa avatar Dec 12 '18 22:12 brucedesa

I switched back to the old exp cli, built fine and everything worked great.

bsoung avatar Dec 12 '18 22:12 bsoung

Have the same issue:

...
Error uploading sourcemaps to Sentry
response status: 404
error: running update nagger
skipping update nagger because session is not attended
error: project not found
...

dmydry avatar Feb 05 '19 14:02 dmydry

I see the same "project not found" error as @dmydry . Is it possible that there are two issues, or is our configuration broken?

antgel avatar Mar 02 '19 15:03 antgel

@dmydry Our configuration is / was broken. In my case, organization wasn't the same as my Sentry organization name. This is documented.

antgel avatar Mar 02 '19 16:03 antgel