15 | };
16 | let d = function(t) {
17 | let f;
18 | if (function(e) {
19 |
20 | return ("enumValues" in e) && Array.isArray(e.enumValues) && e.enumValues.length > 0;
^
TypeError: e is not an Object. (evaluating '"enumValues" in e')
at /Users/abdulrahman/Desktop/SoftwareSavants/Products/Khairaty/khairaty-api/api/node_modules/drizzle-typebox/index.mjs:1:1161
at d (/Users/abdulrahman/Desktop/SoftwareSavants/Products/Khairaty/khairaty-api/api/node_modules/drizzle-typebox/index.mjs:1:1232)
at d (/Users/abdulrahman/Desktop/SoftwareSavants/Products/Khairaty/khairaty-api/api/node_modules/drizzle-typebox/index.mjs:1:1425)
at /Users/abdulrahman/Desktop/SoftwareSavants/Products/Khairaty/khairaty-api/api/node_modules/drizzle-typebox/index.mjs:1:559
at map (:1:20)
at p (/Users/abdulrahman/Desktop/SoftwareSavants/Products/Khairaty/khairaty-api/api/node_modules/drizzle-typebox/index.mjs:1:533)
at /Users/abdulrahman/Desktop/SoftwareSavants/Products/Khairaty/khairaty-api/api/src/modules/driver/driver.schema.ts:32:39
What version of
drizzle-orm
are you using?0.31.2
What version of
drizzle-kit
are you using?0.22.6
Describe the Bug
Adding a geometry column in a
pgTable
withtuple
mode causes the issue.Example code:
The outcome:
I've looked into the
drizzle-typebox
code and it seems like this line is causing the issue: https://github.com/drizzle-team/drizzle-orm/blob/4ecfe1fca3ec0bc8fdec02b6751e030b8832fb41/drizzle-typebox/src/index.ts#L284Expected behavior
The app compiles successfully
Environment & setup
Database:
postgresql