Troubleshooting runtime updates

This page describes troubleshooting when upgrading to each runtime.
If an error occurs, refer to the error message for each version and rewrite it.

V202406 to V202501(latest version)

V202406 to V202501(latest version)

Starting with V202501, having two functions with the same name in a script results in an error.
Error messageService in useChangeBefore the changeAfter the changeRelevant page
SyntaxError: Identifier 'main' has already been declared Depends on your settings Remove unnecessary main functions so that multiple main functions become one. As shown in pattern 1~3 None
*Depends on your settings.
This often happens when the solution is pasted without removing the main function that is initially shown. The main function may be at the end of the script, rather than at the beginning.
SyntaxError: Identifier '○○○' has already been declared Depends on your settings Fixed multiple ○○○ functions (functions with the same name) to become one. Various patterns depend on the script, but the following are common examples:
1. If multiple ○○○ functions have the same processes, remove the unnecessary ones.
2. If multiple ○○○ functions have different processes, change one of the function names as needed or separate them into other scripts.
This issue often occurs in scripts customized by the user, so ask the person who created the script to make the necessary corrections.
None
*Depends on your settings.

Pattern 1: When there is an empty main function at the beginning Pattern 2: When there is an empty main function at the end
Pattern 3: When the main function is nested *They are nested, so the top and bottom must be removed.