bartoszgolebiowski / zod-csv

The library with utils function for validating csv content
MIT License
12 stars 0 forks source link

Class extends value undefined is not a constructor or null #7

Open ebdrup opened 9 months ago

ebdrup commented 9 months ago

When using 0.0.8 I get this error from just importing zod-csv:

/Users/allanebdrup/Library/CloudStorage/Dropbox/marts-api/node_modules/@nestjs/common/node_modules/tslib/tslib.js:75
            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
                  ^
TypeError: Class extends value undefined is not a constructor or null
    at __extends (/Users/allanebdrup/Library/CloudStorage/Dropbox/marts-api/node_modules/@nestjs/common/node_modules/tslib/tslib.js:75:19)
    at /Users/allanebdrup/Library/CloudStorage/Dropbox/marts-api/node_modules/zod-csv/dist/zcsv.umd.cjs:6:1640
    at W (/Users/allanebdrup/Library/CloudStorage/Dropbox/marts-api/node_modules/zod-csv/dist/zcsv.umd.cjs:6:2289)
    at $ (/Users/allanebdrup/Library/CloudStorage/Dropbox/marts-api/node_modules/zod-csv/dist/zcsv.umd.cjs:6:2421)
    at /Users/allanebdrup/Library/CloudStorage/Dropbox/marts-api/node_modules/zod-csv/dist/zcsv.umd.cjs:8:2686
    at /Users/allanebdrup/Library/CloudStorage/Dropbox/marts-api/node_modules/zod-csv/dist/zcsv.umd.cjs:8:2692
    at /Users/allanebdrup/Library/CloudStorage/Dropbox/marts-api/node_modules/zod-csv/dist/zcsv.umd.cjs:1:60
    at Object.<anonymous> (/Users/allanebdrup/Library/CloudStorage/Dropbox/marts-api/node_modules/zod-csv/dist/zcsv.umd.cjs:1:217)
    at Module._compile (node:internal/modules/cjs/loader:1241:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1295:10)

node v20.9.0 yarn: v1.22.19