Problem
When the user opens the "Journal entries posting preference" menu under a NetSuite workspace's Travel invoicing export settings, New Expensify crashes and renders the "Uh-oh, something went wrong!" fallback screen instead of showing the selection list.
Reproduction Steps
Reproduces on both staging and dev.
- Connect a workspace to NetSuite (NetSuite must be the active connection).
- Go to Workspace settings → Accounting → NetSuite → Export → Travel invoicing.
- Direct URL:
/workspaces/<policyID>/accounting/netsuite/export/travel-invoicing
- Tap Journal entries posting preference.
Expected behavior
A selection screen appears letting the admin pick between "Single entry for each expense" and the other posting preference values.
Actual behavior
The app renders the global error boundary ("Uh-oh, something went wrong!") with Refresh / Sign out buttons. The user must refresh to recover.
Solution
Add the missing import React from 'react'; statement at the top of src/pages/workspace/accounting/netsuite/export/NetSuiteTravelInvoicingJournalPostingPreferenceSelectPage.tsx. The file uses JSX, which compiles to React.createElement(...) under this project's classic JSX runtime, so React must be in scope at module level.
Extra context
Console error captured from the dev build:
ReferenceError: React is not defined
at NetSuiteTravelInvoicingJournalPostingPreferenceSelectPage (.../NetSuiteTravelInvoicingJournalPostingPreferenceSelectPage.tsx)
at react_stack_bottom_frame
at renderWithHooks
...
The file is the only .tsx in src/pages/workspace/accounting/netsuite/export/ without an import React line — every sibling (including the very similar NetSuiteTravelInvoicingPayableAccountSelectPage.tsx and DynamicNetSuiteExportExpensesJournalPostingPreferenceSelectPage.tsx) imports React explicitly.
File introduced in #89968.
Problem
When the user opens the "Journal entries posting preference" menu under a NetSuite workspace's Travel invoicing export settings, New Expensify crashes and renders the "Uh-oh, something went wrong!" fallback screen instead of showing the selection list.
Reproduction Steps
Reproduces on both staging and dev.
/workspaces/<policyID>/accounting/netsuite/export/travel-invoicingExpected behavior
A selection screen appears letting the admin pick between "Single entry for each expense" and the other posting preference values.
Actual behavior
The app renders the global error boundary ("Uh-oh, something went wrong!") with Refresh / Sign out buttons. The user must refresh to recover.
Solution
Add the missing
import React from 'react';statement at the top ofsrc/pages/workspace/accounting/netsuite/export/NetSuiteTravelInvoicingJournalPostingPreferenceSelectPage.tsx. The file uses JSX, which compiles toReact.createElement(...)under this project's classic JSX runtime, soReactmust be in scope at module level.Extra context
Console error captured from the dev build:
The file is the only
.tsxinsrc/pages/workspace/accounting/netsuite/export/without animport Reactline — every sibling (including the very similarNetSuiteTravelInvoicingPayableAccountSelectPage.tsxandDynamicNetSuiteExportExpensesJournalPostingPreferenceSelectPage.tsx) imports React explicitly.File introduced in #89968.