undefined is not an object (evaluating 'this._isGenerateCodeButtonLoading')

Jorge Gutierrez 30 Reputation points
2023-05-07T05:48:15.86+00:00

Hello everyone, I have a problem when trying to generate the txt record code to verify my custom domain, I'm getting "undefined is not an object (evaluating 'this._isGenerateCodeButtonLoading')"

Screenshot 2023-05-06 at 11.41.37 p.m.

Does anyone have a solution or work around for this?

Thanks in advance.

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,178 questions
{count} votes

Accepted answer
  1. SnehaAgrawal-MSFT 22,706 Reputation points Moderator
    2023-05-11T10:51:42.8866667+00:00

    @Jorge Gutierrez Update: The issue has been resolved.

    Please let us know if further query or issue remains.

    Please accept as "Yes" if the answer provided is useful , so that you can help others in the community looking for remediation for similar issues.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 22,706 Reputation points Moderator
    2023-05-09T07:49:32.88+00:00

    @Jorge Gutierrez

    Apologies for inconvenience on this, Acknowledged the issue is reproducible and product team is working towards fix, will update here accordingly.

    Workaround suggested.

    Use Azure CLI command to generate a token:

    az staticwebapp hostname set -n MyStaticAppName --hostname example.com --validation-method "dns-txt-token"

    Once executed, a TXT token will be generated. But the command will not complete until the validation complete. 

    You can retrieve the token via Azure portal > Static Web App > Custom Domain. 

    You can also retrieve the token with below Azure CLI command in a different command prompt:

    az staticwebapp hostname show -n MyStaticAppName -g MyResourceGroup --hostname example.com --query "validationToken"

    Please let us know if further query.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.