Skip to content

createBook ERR: TypeError: Cannot read properties of undefined (reading 'id') #7

@FreeSoftwareServers

Description

@FreeSoftwareServers

I managed to get my URL working by appending /api, I don't see any errors until...

Any suggestions? I added id= to .env but no luclk

createBook ERR: TypeError: Cannot read properties of undefined (reading 'id')
    at /opt/confexport/npm/confluence-server-to-bookstack-importer/dist/import.js:372:40
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Promise.all (index 46)
 Xbox_142540804.html
 Books created!
 Putting Books on Shelves...
 Books are on the shelves!
 Creating chapters...
/opt/confexport/npm/confluence-server-to-bookstack-importer/dist/import.js:276
            book_id: parentBook.book
                                ^

TypeError: Cannot read properties of undefined (reading 'book')
    at /opt/confexport/npm/confluence-server-to-bookstack-importer/dist/import.js:276:33
    at Array.map (<anonymous>)
    at /opt/confexport/npm/confluence-server-to-bookstack-importer/dist/import.js:257:39
    at Generator.next (<anonymous>)
    at /opt/confexport/npm/confluence-server-to-bookstack-importer/dist/import.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/opt/confexport/npm/confluence-server-to-bookstack-importer/dist/import.js:4:12)
    at createChapters (/opt/confexport/npm/confluence-server-to-bookstack-importer/dist/import.js:255:30)
    at /opt/confexport/npm/confluence-server-to-bookstack-importer/dist/import.js:650:15
    at Generator.next (<anonymous>)

Node.js v19.9.0

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