Please Help me: Error message RangeError: Maximum call stack size exceeded

I always see the same error: Error message RangeError: Maximum call stack size exceeded
This is my log:

5:32:12 PM: Netlify Build
5:32:12 PM: ────────────────────────────────────────────────────────────────
5:32:12 PM: ​
5:32:12 PM: ❯ Version
5:32:12 PM: @netlify/build 29.20.12
5:32:12 PM: ​
5:32:12 PM: ❯ Flags
5:32:12 PM: baseRelDir: true
5:32:12 PM: buildId: 6503357603ae4d00081f827e
5:32:12 PM: deployId: 6503357603ae4d00081f8280
5:32:12 PM: ​
5:32:12 PM: ❯ Current directory
5:32:12 PM: /opt/build/repo
5:32:12 PM: ​
5:32:12 PM: ❯ Config file
5:32:12 PM: /opt/build/repo/netlify.toml
5:32:12 PM: ​
5:32:12 PM: ❯ Context
5:32:12 PM: production
5:32:12 PM: ​
5:32:12 PM: build.command from netlify.toml
5:32:12 PM: ────────────────────────────────────────────────────────────────
5:32:12 PM: ​
5:32:12 PM: $ npm run build
5:32:12 PM: > build
5:32:12 PM: > vite build
5:32:12 PM: vite v4.4.9 building for production…
5:32:12 PM: transforming…
5:32:12 PM: images/moviepitchbg-dark.jpg referenced in /opt/build/repo/index.css didn’t resolve at build time, it will remain unchanged to be resolved at runtime
✓ 4 modules transformed.
5:32:12 PM: rendering chunks…
5:32:12 PM: computing gzip size…
5:32:12 PM: dist/assets/icon_button-7b1f82ea.svg 0.65 kB │ gzip: 0.37 kB
5:32:12 PM: dist/index.html 2.08 kB │ gzip: 0.95 kB
5:32:12 PM: dist/assets/BossAI-049c43ba.svg 55.80 kB │ gzip: 19.83 kB
5:32:12 PM: dist/assets/index-0ae2292e.css 3.26 kB │ gzip: 1.11 kB
5:32:12 PM: dist/assets/index-e7aac0b9.js 1.52 kB │ gzip: 0.78 kB
5:32:12 PM: ✓ built in 113ms
5:32:12 PM: ​
5:32:12 PM: (build.command completed in 519ms)
5:32:12 PM: ​
5:32:12 PM: Functions bundling
5:32:12 PM: ────────────────────────────────────────────────────────────────
5:32:12 PM: ​
5:32:12 PM: Packaging Functions from netlify/functions directory:
5:32:12 PM: - fetchAI/fetchAI.js
5:32:12 PM: ​
5:32:13 PM: ​
5:32:13 PM: Internal error during Functions bundling
5:32:13 PM: ────────────────────────────────────────────────────────────────
5:32:13 PM: ​
5:32:13 PM: Error message
5:32:13 PM: RangeError: Maximum call stack size exceeded
5:32:13 PM: ​
5:32:13 PM: Error location
5:32:13 PM: During Functions bundling
5:32:13 PM: at Map.has ()
5:32:13 PM: at shouldTranspile (file:///opt/buildhome/node-deps/node_modules/@netlify/zip-it-and-ship-it/dist/runtimes/node/bundlers/nft/es_modules.js:58:15)
5:32:13 PM: at file:///opt/buildhome/node-deps/node_modules/@netlify/zip-it-and-ship-it/dist/runtimes/node/bundlers/nft/es_modules.js:78:67
5:32:13 PM: at Array.every ()
5:32:13 PM: at shouldTranspile (file:///opt/buildhome/node-deps/node_modules/@netlify/zip-it-and-ship-it/dist/runtimes/node/bundlers/nft/es_modules.js:78:45)
5:32:13 PM: at file:///opt/buildhome/node-deps/node_modules/@netlify/zip-it-and-ship-it/dist/runtimes/node/bundlers/nft/es_modules.js:78:67
5:32:13 PM: at Array.every ()
5:32:13 PM: at shouldTranspile (file:///opt/buildhome/node-deps/node_modules/@netlify/zip-it-and-ship-it/dist/runtimes/node/bundlers/nft/es_modules.js:78:45)
5:32:13 PM: at file:///opt/buildhome/node-deps/node_modules/@netlify/zip-it-and-ship-it/dist/runtimes/node/bundlers/nft/es_modules.js:78:67
5:32:13 PM: at Array.every ()
5:32:13 PM: ​
5:32:13 PM: Resolved config
5:32:13 PM: build:
5:32:13 PM: command: npm run build
5:32:13 PM: commandOrigin: config
5:32:13 PM: environment:
5:32:13 PM: - OPENAI_API_KEY
5:32:13 PM: publish: /opt/build/repo/dist
5:32:13 PM: publishOrigin: config
5:32:13 PM: functionsDirectory: /opt/build/repo/netlify/functions
5:32:13 PM: Build failed due to an internal system error: Build script returned non-zero exit code: 4
5:32:13 PM: Failing build: Failed to build site
5:32:14 PM: Finished processing build request in 22.528s

Hi I upped your build timelimit to 30 minutes and hopefully this works. Can you give this another go and share the deploy logs so we can see how it went?

First, thank you for your reply
Unfortunately, it’s not working
The exact same error have happened again and again …
Can this be related to my free tier !?
I have spent all day fixing this error but the exact same error !

Please help me !!! I’m stuck in this problem for 2 days now

That’s a Netlify problem we’re working to fix. Follow this thread for future updates: Maximum call stack size error - Support - Netlify Support Forums

Please , is the problem resolved or not yet!!??

Hey there!

Just wanted to follow up on this thread as well to confirm that this issue should now be resolved.