Skip to content

How to prevent the following error: TypeError: Cannot read properties of undefined (reading 'constructor') #1700

Answered by sidorares
simathedev asked this question in Q&A
Discussion options

You must be logged in to vote

looks like the sql passed to .query() is undefined ( we expect a string here ). Can yuu double check how this could happen? ( uninitialised variable etc )

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@simathedev
Comment options

Answer selected by simathedev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants