Skip to content

[$2000] App fails on devices using recent node/npm with JavaScript error - reported by David Frenkiel  #8888

@mvtglobally

Description

@mvtglobally

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Git clone, npm install, npm run web

Expected Result:

App runs without invalid hook call JavaScript error.

Actual Result:

Browser window opens and remains blank, and there’s an invalid hook call... error in the JavaScript console.

There do appear to be invalid hook calls in react-native-safe-area-context in SafeAreaContext.tsx.

Workaround:

Using an old node/npm version (e.g. 14.9.0/6.14.8) resolves the issue.

Platform:

Where is this issue occurring?

  • Desktop App

Version Number: 1.1.56-0
Reproducible in staging?: need repro
Reproducible in production?: need repro
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
expensify_m1_issue_1

Expensify/Expensify Issue URL:
Issue reported by: @ David Frenkiel
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1650494818552169?thread_ts=1650471398.505469&cid=C01GTK53T8Q

Job Post: https://www.upwork.com/jobs/~01570a3972089306b9

View all open jobs on GitHub

Metadata

Metadata

Labels

EngineeringExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributorsImprovementItem broken or needs improvement.ReviewingHas a PR in reviewWeeklyKSv2

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions