Skip to content

Syntax error in home.js in the GPT example #44

Open
@jochemloedeman

Description

@jochemloedeman

Upon compiling the /home route in the GPT example, I am getting

error - ./pages/home.js
Error: 
  x Expected ident
    ,----
 82 | <DataTableGrid columns={state.["Question", "Answer"]}
    :                               ^
    `----

Caused by:
    0: failed to process input file
    1: Syntax Error

Manually removing the state. prefix to the columns argument seems to yield valid syntax.

I am using Pynecone 0.1.20 with Node.js 18.15.0 on a MacBook Pro M1 Pro.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions