Deployment with --skip-functions-cache flag causes the issue

My site is https://jss-nextjs-hosting.netlify.app/

It is Next.js based. I use function
https://jss-nextjs-hosting.netlify.app/api/editing/render

When I deploy using netlify deploy --prod --build --skip-functions-cache, I am unable to run request at all: (There is some issue with bundling)

{“errorType”:“Runtime.ImportModuleError”,“errorMessage”:“Error: Cannot find module ‘…/…/…/.next/required-server-files.json’\nRequire stack:\n- /var/task/.netlify/functions-internal/___netlify-handler/___netlify-handler.js\n- /var/task/___netlify-handler.js\n- /var/runtime/index.mjs”,“trace”:[“Runtime.ImportModuleError: Error: Cannot find module ‘…/…/…/.next/required-server-files.json’”,“Require stack:”,“- /var/task/.netlify/functions-internal/___netlify-handler/___netlify-handler.js”,“- /var/task/___netlify-handler.js”,“- /var/runtime/index.mjs”," at _loadUserApp (file:///var/runtime/index.mjs:1087:17)“,” at async UserFunction.js.module.exports.load (file:///var/runtime/index.mjs:1119:21)“,” at async start (file:///var/runtime/index.mjs:1282:23)“,” at async file:///var/runtime/index.mjs:1288:1"]}

When I deploy using netlify deploy --prod --build I get another issue. (It is consequent build)

Why presence of --skip-functions-cache attribute cause this inconsistency??

And that is annoying.

You REMOVE some code at all, but you see that it is in use in FRESH deployed functions.

Duplicate of: Runtime.ImportModuleError - Error: Cannot find module '../../../.next/required-server-files.json - #17 by Antonytm