Skip to content

[Due for payment 2026-05-28] NetSuite Travel invoicing export crashes when opening Journal entries posting preference menu #91023

Closed

Description

@blimpich

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.

  1. Connect a workspace to NetSuite (NetSuite must be the active connection).
  2. Go to Workspace settings → Accounting → NetSuite → Export → Travel invoicing.
    • Direct URL: /workspaces/<policyID>/accounting/netsuite/export/travel-invoicing
  3. 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.

Activity

  1. blimpich commented on May 18, 2026

    @blimpich
    ContributorAuthor

    video reproducing issue. Also happens on staging

    Screen.Recording.2026-05-18.at.3.42.37.PM.mov
  2. changed the title [-]NetSuite Travel invoicing export crashes when opening Journal entries posting preference menu[/-] [+][Due for payment 2026-05-28] NetSuite Travel invoicing export crashes when opening Journal entries posting preference menu[/+] on May 21, 2026
  3. melvin-bot commented on May 21, 2026

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  4. melvin-bot commented on May 21, 2026

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.78-1 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2026-05-28. 🎊

  5. blimpich commented on May 21, 2026

    @blimpich
    ContributorAuthor

    No one to pay for this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions