Skip to content

twoslash-tester crashes #7

@devanshj

Description

@devanshj
$ cd packages/predicate
$ node ../../twoslash-tester/generate tests/types.twoslash-test.ts
generating... E:\sthir\node_modules\typescript\lib\typescript.js:10384
        return sourceFile.getPositionOfLineAndCharacter ?
                          ^

TypeError: Cannot read property 'getPositionOfLineAndCharacter' of undefined
    at Object.getPositionOfLineAndCharacter (E:\sthir\node_modules\typescript\lib\typescript.js:10384:27)
    at E:\sthir\node_modules\@typescript\twoslash\dist\twoslash.cjs.development.js:681:25
    at Array.map (<anonymous>)
    at _loop3 (E:\sthir\node_modules\@typescript\twoslash\dist\twoslash.cjs.development.js:679:40)
    at twoslasher (E:\sthir\node_modules\@typescript\twoslash\dist\twoslash.cjs.development.js:743:17)
    at generate (E:\sthir\twoslash-tester\generate.js:19:48)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions