[wp-trac] [WordPress Trac] #59634: `grunt-contrib-qunit` update causes problems in Gutenberg build process

WordPress Trac noreply at wordpress.org
Mon Oct 16 15:55:54 UTC 2023


#59634: `grunt-contrib-qunit` update causes problems in Gutenberg build process
------------------------------+--------------------
 Reporter:  desrosj           |      Owner:  (none)
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  6.4
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+--------------------
 [56647] introduced some problems for contributors who have the Gutenberg
 plugin checked out for contributing within a checkout of `wordpress-
 develop`.

 {{{
 ../../../../node_modules/puppeteer/lib/types.d.ts:610:6 - error TS2748:
 Cannot access ambient const enums when 'isolatedModules' is enabled.
 }}}

 While Core itself no longer relies on Puppeteer after [56926], `grunt-
 contrib-qunit` uses it to run the JavaScript QUnit tests. For some reason,
 some package is detecting the presence of Puppeteer in higher directories
 and causing this error.

 For now, the dependency can be downgraded to fix this specific issue.
 Longer term, this will need to be solved and better detection should be
 added (see #59632).

 Related: #58671, #58863, #59632.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59634>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list