[wp-trac] [WordPress Trac] #64393: Change how we include Gutenberg in Core

WordPress Trac noreply at wordpress.org
Wed Feb 18 02:10:27 UTC 2026


#64393: Change how we include Gutenberg in Core
------------------------------+--------------------------
 Reporter:  youknowriad       |       Owner:  youknowriad
     Type:  task (blessed)    |      Status:  reopened
 Priority:  high              |   Milestone:  7.0
Component:  Build/Test Tools  |     Version:
 Severity:  blocker           |  Resolution:
 Keywords:  has-patch         |     Focuses:
------------------------------+--------------------------

Comment (by desrosj):

 I think I figured out the specific issue on my machine.

 It seems that `NODE_ENV` was somehow being set to `production` and
 `--omit=dev` was being configured. This was being caused by some
 combination of:
 - Installing pnpm
 - `corepack` being installed globally when `pnpm` was installed using
 Homebrew.
 - iTerm2's [https://iterm2.com/documentation-restoration.html session
 restoration].

 I installed pnpm ~1-2 weeks ago to test
 [https://github.com/WordPress/gutenberg/pull/74689 Gutenberg-74689] and
 something seems to have set `NODE_ENV` to `production` during the
 installation, and that environment variable was persisting due to iTerm2's
 feature.

 Running this in Terminal (not iTerm) seems to have fixed the issue for me:

 {{{
 rm -rf ~/Library/Application\ Support/iTerm2/SavedState/
 defaults delete com.googlecode.iterm2 "PerWindowSavedState" 2>/dev/null
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64393#comment:132>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list