Skip to content

A problem with typescript version 4 #2132

@vh-dao

Description

@vh-dao

Hi,
objection.js is a great tool.
I am using latest version of knex and typescript, so want to use objection@next but it is throwing error:

           throw e;
                ^
RangeError: Maximum call stack size exceeded
    at compareSignaturesRelated (\node_modules\typescript\lib\tsc.js:50982:27)
    at signatureRelatedTo (\node_modules\typescript\lib\tsc.js:52833:24)
    at signaturesRelatedTo (\node_modules\typescript\lib\tsc.js:52776:39)
    at structuredTypeRelatedToWorker (\node_modules\typescript\lib\tsc.js:52309:39)
    at structuredTypeRelatedTo (\node_modules\typescript\lib\tsc.js:51954:30)
    at recursiveTypeRelatedTo (\node_modules\typescript\lib\tsc.js:51930:53)
    at isRelatedTo (\node_modules\typescript\lib\tsc.js:51527:34)
    at isPropertySymbolTypeRelated (\node_modules\typescript\lib\tsc.js:52488:24)
    at propertyRelatedTo (\node_modules\typescript\lib\tsc.js:52520:31)
    at propertiesRelatedTo (\node_modules\typescript\lib\tsc.js:52708:43)

package.json:

        "objection": "^3.0.0-alpha.5",
        "typescript": "^4.4.4"

Which version of objection.js and typescript should I use?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions