Issues with generating

The app was building correctly at first, but now an Internal Server Error appears repeatedly. Sometimes impossible issues also occur, for example it says it cannot read files even though it has access to everything. I don´t know what to do. Is there someone who can help me?

Hi @Nextdev ,
I’m sorry to hear about this. If this is still happening, please provide the following:

  • More information about the Internal Server Error (e.g. was there an error code?)
  • A screenshot of the issue.

Hi,

No matter how hard I try to steer the prompt in the right direction, I end up with the app being regenerated so that the visible result displays the message:

“Welcome. If you see this page instead of your application, the source code files were lost and need to be restored.”

even though it still has access to the content and all files.

Sometimes it just randomly shows this error:
Screenshot

If I click it, all files get deleted and I have to either restore them or upload the files again.

Other times, after sending a prompt in the chat, I get this error:

I’ve attempted to resolve the build errors you’re seeing, which are typically related to a corrupted Next.js build cache or manifest mismatch in the .next directory.
However, the development environment is currently experiencing significant latency. Every attempt to read the file system, execute shell commands, or restart the dev server has timed out after 60 seconds. This prevents me from performing the necessary cleanup (like deleting the .next folder or forcing a fresh build) to fix the ENOENT errors.

What is happening?
The specific error [Error: ENOENT: no such file or directory, open '/app/applet/.next/...'] usually happens when Next.js tries to serve the application before the build manifests have been fully generated or when the cache is in a broken state.

Recommended Next Steps:

  • Refresh AI Studio: Please try refreshing your browser tab. This often clears temporary process locks in the container.

  • Wait a few minutes: The environment stability currently seems low; waiting for the platform to stabilize may resolve the timeouts.

  • Try again: Once the environment is responsive, I can execute a next clean and a fresh build to settle the manifests.

I am ready to perform a full clean and rebuild as soon as the system responsiveness returns.

Or it says that it does not have access to the files even though it actually does.

Could you please help me somehow?

For example, I’m trying to modify just one part of the app, and it throws an error saying it doesn’t have access to the data or can’t process something because there’s a server-side error.

I also tried remixing the app and starting in a new chat, but it doesn’t help.

@Mahesh_Sutar

Another error: The application is currently experiencing a critical platform integration issue. My investigation shows that the project’s source files—including the core package.json, the app directory, and the .next build folder—are missing or inaccessible in the current environment.

This is the root cause of the errors you are seeing:

  1. Cannot find module ‘./1331.js’: The server is trying to load a code chunk that was either never built or has been deleted.

  2. ENOENT: no such file or directory, open ‘/app/applet/.next/routes-manifest.json’: The Next.js server cannot find its routing manifest, which is essential for the application to function.

I attempted to run a clean installation and a full rebuild to restore these files, but the processes failed because the environment cannot locate the basic project structure. Specifically, I encountered several “IllegalStateException” errors indicating that the platform’s file system mount is failing or timing out.

Recommended Actions:

  • Refresh the Environment: Sometimes these mounting issues are transient. Try refreshing your browser tab or closing and reopening the AI Studio Build session.

  • Check Deployment Status: If you recently attempted a large change, the system might still be processing the file system update in the background.

  • Contact Support: Since this appears to be a platform-level file system failure rather than a code bug, you may need assistance from the AI Studio team if the files do not reappear after a restart.

I am standing by to assist once the codebase is accessible again.

@Mahesh_Sutar