Skip to content

SyntaxError: Identifier 'PageContent' has already been declared #1

@pilathraj

Description

@pilathraj

I Just Clone this your application and trying to run, When i access https://localhost:44339/About page I got following error.

**SyntaxError**: Identifier 'PageContent' has already been declared
**Description**: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

**Exception Details**: Microsoft.ClearScript.ScriptEngineException: SyntaxError: Identifier 'PageContent' has already been declared

**Source Error:**
Line 8:          Dim env = React.ReactEnvironment.Current
Line 9:          Dim objectModel = New With {Key .user = "React User"}
Line 10:         Dim reactComponent = env.CreateComponent("PageContent", objectModel)
Line 11: 
Line 12:         PageContent.Text = reactComponent.RenderHtml()

Can you please advice me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions