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

The 'Uncaught (in promise): TypeError: Cannot read properties of undefined (reading 'render')' exception is thrown when running custom PDF brick rendering using the TextFieldBrick #310

Closed
JaneSjs opened this issue Mar 27, 2024 · 1 comment
Assignees
Labels
API change Issues that request changes in the API user issue An issue or bug reported by users.

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented Mar 27, 2024

T17445 - textBrick.render() throws an error
https://surveyjs.answerdesk.io/internal/ticket/details/T17445


View CodeSandbox
The following exception is thrown when using a custom brick rendering:

index.js:27 ERROR Error: Uncaught (in promise): TypeError: Cannot read properties of undefined (reading 'render')
TypeError: Cannot read properties of undefined (reading 'render')
    at TextFieldBrick.eval (pdf_textfield.ts:64:34)
    at step (helpers.ts:83:23)
    at Object.eval [as next] (helpers.ts:64:63)
    at eval (helpers.ts:57:71)
    at new ZoneAwarePromise (zone.js:1429:21)
    at __awaiter (helpers.ts:53:12)
    at TextFieldBrick.renderReadOnly (pdf_textfield.ts:58:5)
 ...
@JaneSjs JaneSjs added API change Issues that request changes in the API user issue An issue or bug reported by users. labels Mar 27, 2024
@JaneSjs
Copy link
Contributor Author

JaneSjs commented Apr 1, 2024

The updated code is available in the original support thread.

@JaneSjs JaneSjs closed this as completed Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API change Issues that request changes in the API user issue An issue or bug reported by users.
Projects
None yet
Development

No branches or pull requests

1 participant