Skip to content

list of types is empty #6

@wizzard0

Description

@wizzard0
anytype: 0.43.8
node: tried 18, 20, 22

tried to switch spaces etc, doesnt seem to help

npm start

> anytype-capture@1.0.0 start
> node index.js

🧠 Hey, let's capture your thoughts!
👉 Enter the content: hello
🏷️ Available types: []
🏷️ Choose the type: Page
AnytypeCapture/index.js:60
    fs.appendFileSync('.env', `TYPE_ID=${chosenType.details.fields.uniqueKey.stringValue}`);
                                                    ^

TypeError: Cannot read properties of undefined (reading 'details')
    at chooseType (AnytypeCapture/index.js:60:53)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async createObjectWithContent (AnytypeCapture/index.js:67:32)
    at async AnytypeCapture/index.js:95:1

Node.js v18.12.1

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