RangeError after upgrading from 3.8.4 to 3.8.6 - Server-specific issue

Problem Description

After upgrading Cocos Creator from version 3.8.4 to 3.8.6, I’m experiencing a server-specific issue with web builds.

Error Message:
index.d2f23.js:24 RangeError: Failed to set the ‘length’ property on ‘Array’: Invalid array length

Environment:

  • Cocos Creator: 3.8.6 (upgraded from 3.8.4)
  • Platform: Web Build
  • Deployment: AWS S3

Issue Details

  • Server A (Working): Game loads and runs normally
  • Server B (Error): Throws the RangeError on startup
  • Both servers use identical S3 configurations
  • The same build files are deployed to both servers
  • Issue started immediately after upgrading to 3.8.6

What I’ve Checked

  1. Build output files are identical on both servers
  2. S3 bucket configurations appear the same
  3. No console errors during build process
  4. Issue is reproducible consistently on Server B

Questions

  1. Are there any known breaking changes in 3.8.6 related to array handling?
  2. What server configurations should I compare between the two S3 buckets?
  3. Are there specific build settings that might cause server-dependent issues?

Request for Help

Has anyone experienced similar issues after upgrading to 3.8.6? Any guidance on:

  • Specific S3/server settings that might cause this error
  • Build configuration changes needed for 3.8.6
  • Debugging steps to identify the root cause

thank you for read

So we were having issues with our deployment pipeline. The aws s3 sync --delete command wasn’t working as expected - it seemed like some files weren’t being properly updated or cleaned up during deployments.

We switched to a complete wipe and reload approach:
aws s3 rm $PATH --recursive

thank you for read