Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when generating a Word document #19

Open
CloudTechRaz opened this issue Jan 27, 2021 · 0 comments
Open

Exception when generating a Word document #19

CloudTechRaz opened this issue Jan 27, 2021 · 0 comments
Assignees

Comments

@CloudTechRaz
Copy link

Seems that when dealing with long text in a PB (e.g. large formula) the generated table doesn't fit the allocated Word page size resulting in the following error:

TypeError: Cannot read property 'border' of undefined
    at new Paragraph (/app/node_modules/docx/build/index.js:16382:29)
    at /app/node_modules/sfdx-flowdoc-plugin/lib/lib/docx/process/docxTableUtils.js:140:32
    at Array.forEach (<anonymous>)
    at Object.createProcessParameterTable (/app/node_modules/sfdx-flowdoc-plugin/lib/lib/docx/process/docxTableUtils.js:124:10)
    at DocxProcessFormatter.buildActionTables (/app/node_modules/sfdx-flowdoc-plugin/lib/lib/docx/process/docxProcessFormatter.js:171:45)
    at DocxProcessFormatter.buildActionContents (/app/node_modules/sfdx-flowdoc-plugin/lib/lib/docx/process/docxProcessFormatter.js:123:35)
    at /app/node_modules/sfdx-flowdoc-plugin/lib/lib/docx/process/docxProcessFormatter.js:81:53
    at Array.forEach (<anonymous>)
    at DocxProcessFormatter.prepareActionGroups (/app/node_modules/sfdx-flowdoc-plugin/lib/lib/docx/process/docxProcessFormatter.js:75:45)
    at buildDocxContent (/app/node_modules/sfdx-flowdoc-plugin/lib/lib/docx/docxBuilder.js:24:25)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants