Finally I found the cause. I use a publishing portal site template with a custom master page. There are some javascript references in the header. When I removed references, the error has gone. Then I added “~“The final solution is to URL, then the error never came.add this code
<!--SPM:<SharePoint:Scriptlink language="javscript"
name="https://....js"
runat="server" Localizable="false"/>-->