#59634 closed defect (bug) (fixed)
`grunt-contrib-qunit` update causes problems in Gutenberg build process
Reported by: | desrosj | Owned by: | |
---|---|---|---|
Milestone: | 6.4 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | |
Focuses: | Cc: |
Description
[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).
Change History (6)
#3
@
12 months ago
@afercia @antonvlasenko Could you give this a test after [56944] to confirm the issue is resolved?
#4
@
12 months ago
Yes, it fixed the issue for me. Thank you, @desrosj.
Test Report
This report validates that the indicated patch addresses the issue.
Patch tested: https://core.trac.wordpress.org/changeset/56944
Environment
- WordPress: 6.4-beta4-56923-src
- PHP: 7.3.33
- Server: Apache/2.4.57 (Unix) PHP/7.3.33
- Database: mysqli (Server: 5.7.43 / Client: Unavailable)
- Browser: Safari 17.0 (macOS)
- Theme: Twenty Twenty-Three 1.2
- MU-Plugins: None activated
- Plugins:
- Gutenberg 16.8.1
- node: v18.13.0
- npm: v8.19.3
Actual Results
- ✅ Issue resolved with patch.
This was originally reported by @afercia here.