Opened 4 weeks ago
Last modified 2 weeks ago
#63606 new defect (bug)
npm run dev: Warning: Maximum call stack size exceeded
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 3.7 |
Component: | Build/Test Tools | Keywords: | has-patch has-test-info needs-testing 2nd-opinion |
Focuses: | Cc: |
Description
When running npm run dev
an error appears
Warning: Maximum call stack size exceeded
Before it finally crashes with
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
Commented on Slack and @desrosj informed that he found this when a large number of plugins were sitting on the plugins
directory. Presently I have 54 units (all non-active, but still sitting there)
I tried to remove them all, and it appears that this solves the problem.
This has been sitting here since the inception of the first Gruntfile verison [25001]
Change History (4)
This ticket was mentioned in PR #9030 on WordPress/wordpress-develop by @SirLouen.
4 weeks ago
#1
- Keywords has-patch added; needs-patch removed
#3
@
4 weeks ago
- Keywords 2nd-opinion added
More information
I've noted that with woocommerce
plugin is possible to reproduce this
Not easy to reproduce though: the more files, the easier.
I think that just excluding plugins in watch
is enough.
Maybe just adding akismet, although in watch mode, akismet is totally irrelevant. So probably it can be ignored.
#4
@
2 weeks ago
Reproduction Report
Description
This report validates whether the issue can be reproduced.
Was able to reproduce this on the default WordPress Core wp-env setup
Environment
- WordPress: 6.9-alpha-60093-src
- PHP: 8.2.28
- Server: nginx/1.27.5
- Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
- Browser: Chrome 138.0.0.0
- OS: macOS
- Theme: Twenty Twenty-Five 1.2
- MU Plugins: None activated
- Plugins:
- Example Static 0.1.0
- Test Reports 1.2.0
Actual Results
- ✅ Error condition occurs (reproduced).
Additional Notes
this seems to happen with the Running "_watch" tasks
Testing & Reproduction Instructions
node_modules
files it will be easier to reproduce. The more files in the plugins directory, the better to reproduce thisnpm run dev
Warning: Maximum call stack size exceeded
With the patch, this should be gone
Trac ticket: https://core.trac.wordpress.org/ticket/63606