App icon indicating copy to clipboard operation
App copied to clipboard

DEV - Throws warning when starting desktop

Open m-natarajan opened this issue 10 months ago β€’ 2 comments

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: Dev Reproducible in staging?: dev Reproducible in production?: dev If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs: https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by: @shubham1206agra Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1712819917386169

Action Performed:

  1. Open desktop app in dev environment

Expected Result:

Opens without any issues

Actual Result:

Error message is thrown

Onyx DevTools - Error: ReferenceError: window is not defined [Electron] at DevTools.connectViaExtension (webpack://new.expensify/./node_modules/react-native-onyx/dist/DevTools.js?:14:35) [Electron] at new DevTools (webpack://new.expensify/./node_modules/react-native-onyx/dist/DevTools.js?:6:31) [Electron] at eval (webpack://new.expensify/./node_modules/react-native-onyx/dist/DevTools.js?:69:22) [Electron] at ./node_modules/react-native-onyx/dist/DevTools.js (/Users/prachiagrawal/code/App/desktop/dist/main.js:2717:1) [Electron] at webpack_require (/Users/prachiagrawal/code/App/desktop/dist/main.js:5411:42) [Electron] at eval (webpack://new.expensify/./node_modules/react-native-onyx/dist/Onyx.js?:37:36) [Electron] at ./node_modules/react-native-onyx/dist/Onyx.js (/Users/prachiagrawal/code/App/desktop/dist/main.js:2739:1) [Electron] at webpack_require (/Users/prachiagrawal/code/App/desktop/dist/main.js:5411:42) [Electron] at eval (webpack://new.expensify/./node_modules/react-native-onyx/dist/index.js?:7:32) [Electron] at ./node_modules/react-native-onyx/dist/index.js (/Users/prachiagrawal/code/App/desktop/dist/main.js:2816:1)

Workaround:

unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • [ ] Android: Native
  • [ ] Android: mWeb Chrome
  • [ ] iOS: Native
  • [ ] iOS: mWeb Safari
  • [ ] MacOS: Chrome / Safari
  • [x] MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

View all open jobs on GitHub

m-natarajan avatar Apr 13 '24 12:04 m-natarajan

Triggered auto assignment to @mallenexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

melvin-bot[bot] avatar Apr 13 '24 12:04 melvin-bot[bot]

This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989

MelvinBot avatar Apr 13 '24 12:04 MelvinBot

Checking on in #engineering-chat

mallenexpensify avatar Apr 15 '24 22:04 mallenexpensify

@pac-guerreiro , πŸ‘€ plz, this might be related to

  • https://github.com/Expensify/react-native-onyx/pull/438

mallenexpensify avatar Apr 16 '24 17:04 mallenexpensify

@mallenexpensify Yeah... this is one me πŸ˜… I can take a look into it if you want!

pac-guerreiro avatar Apr 16 '24 17:04 pac-guerreiro

Thanks for the quick reply, assigned to you. cc @marcaaron and @AndrewGable since you were the reviewers on the PR. Not assigning to either of ya, do so if you want.

mallenexpensify avatar Apr 16 '24 17:04 mallenexpensify

@m-natarajan

I'm unable to reproduce this. Does the app crash to you? Are you running the app through npm run desktop?

pac-guerreiro avatar Apr 16 '24 19:04 pac-guerreiro

Threw retest-weekly on here too.

mallenexpensify avatar Apr 17 '24 00:04 mallenexpensify

@mallenexpensify, @pac-guerreiro Huh... This is 4 days overdue. Who can take care of this?

melvin-bot[bot] avatar Apr 22 '24 18:04 melvin-bot[bot]

@m-natarajan

Can you re-test this? πŸ˜„

pac-guerreiro avatar Apr 23 '24 02:04 pac-guerreiro

@pac-guerreiro , @m-natarajan is only responsible for creating issues, they don't monitor or (often) respond to pings once issues are created. Let's wait til the retest-weekly label triggers a retest then we'll see what next best steps are.

mallenexpensify avatar Apr 23 '24 22:04 mallenexpensify

@pac-guerreiro @mallenexpensify Still able to repro on latest main.

shubham1206agra avatar Apr 24 '24 00:04 shubham1206agra

@mallenexpensify

Thanks for the heads up! I didn't know about this, sorry πŸ˜…

pac-guerreiro avatar Apr 24 '24 21:04 pac-guerreiro

@shubham1206agra

I was able to reproduce this and I'll create a PR with a fix for it πŸ˜„

pac-guerreiro avatar Apr 24 '24 21:04 pac-guerreiro

This issue was caused by this PR πŸ˜…

pac-guerreiro avatar Apr 24 '24 21:04 pac-guerreiro

My fix got merged and react-native-onyx was bumped to v2.0.34. We'll have to wait until we bump react-native-onyx version in the app

pac-guerreiro avatar Apr 25 '24 09:04 pac-guerreiro

@mallenexpensify @pac-guerreiro this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

melvin-bot[bot] avatar Apr 27 '24 18:04 melvin-bot[bot]

We'll have to wait until the we bump react-native-onyx version in the app

Thinking we're waiting on the above.

mallenexpensify avatar Apr 30 '24 01:04 mallenexpensify

@mallenexpensify, @pac-guerreiro Whoops! This issue is 2 days overdue. Let's get this updated quick!

melvin-bot[bot] avatar May 03 '24 18:05 melvin-bot[bot]

We'll have to wait until the we bump react-native-onyx version in the app

pac-guerreiro avatar May 07 '24 08:05 pac-guerreiro

@mallenexpensify, @pac-guerreiro Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

melvin-bot[bot] avatar May 10 '24 18:05 melvin-bot[bot]

@mallenexpensify, @pac-guerreiro Still overdue 6 days?! Let's take care of this!

melvin-bot[bot] avatar May 14 '24 18:05 melvin-bot[bot]

Bumped to weekly, per the comment above

We'll have to wait until the we bump react-native-onyx version in the app

mallenexpensify avatar May 15 '24 00:05 mallenexpensify

QA team is not able to confirm if this issue is still reproducible during KI retests as it requires Development Desktop app. This issue will need to be retested internally

mvtglobally avatar May 16 '24 04:05 mvtglobally

Once this PR is merged, this issue should be resolved!

pac-guerreiro avatar May 16 '24 09:05 pac-guerreiro

@mvtglobally

I can retest it once the PR I mentioned above gets merged! πŸ˜„

pac-guerreiro avatar May 16 '24 09:05 pac-guerreiro

@mvtglobally @mallenexpensify

PR is now merged and the issue seems to be resolved! πŸ˜„

pac-guerreiro avatar May 23 '24 18:05 pac-guerreiro

Thanks @pac-guerreiro , gonna close. Comment/reopen if you disagree or if the issue persists.

mallenexpensify avatar May 24 '24 21:05 mallenexpensify

@mallenexpensify

Looks like the PR that fixed this got reverted in https://github.com/Expensify/App/pull/42725 πŸ˜…

I'll keep you posted on any developments about this!

Meanwhile, this issue should show up again

pac-guerreiro avatar May 29 '24 08:05 pac-guerreiro

@mallenexpensify

New PR is open - https://github.com/Expensify/App/pull/42772 πŸ˜„

pac-guerreiro avatar Jun 03 '24 09:06 pac-guerreiro