Bug Report: Google AI Studio Template Generation Issue
Summary: Downloaded code templates from Google AI Studio are malformed, preventing them from running correctly.
Product/Component: Google AI Studio (specifically, the Code Template export feature)
OS / Environment:
-
Operating System: Windows
-
Tools: VS Code, Node.js
Steps to Reproduce:
-
Go to Google AI Studio and create a new project template.
-
Download the generated code template file (e.g., a
.zipfile). -
Unzip the file and open the project folder in VS Code.
-
Run the command
npm installin the integrated terminal. -
After the packages are installed, run the command
npm run start.
Actual Result: The npm run start command fails with the error message "Error: no start script specified". The package.json file inside the downloaded template is found to be incorrect, as the start script is set to literally output this error message instead of a valid run command.
JSON
"scripts": {
"start": "echo \"Error: no start script specified\" && exit 1"
}
Expected Result: After following the standard installation steps, the project should run successfully and automatically open in a web browser. The package.json file should contain a valid start script (e.g., react-scripts start) that launches the application.
Additional Information:
-
This issue is consistently reproducible with newly created templates from the platform.
-
The
package.jsonfile is either missing or contains the malformedstartscript. -
The “My history” page on the Google AI Studio website is empty, while the project files themselves are correctly saved in Google Drive. This may indicate a separate platform bug related to history synchronization.