Skip to content

Intermittent circular type error  #10

@fabiancook

Description

@fabiancook

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure it has not already been reported

Version

2.24.2

Node.js version

17.x

Operating system

macOS

Operating system version (i.e. 20.04, 11.3, 10)

10.15.7

Description

When building I receive

[~/src/virtualstate/x]$ yarn build
yarn run v1.22.10
$ tsc -b ./tsconfig.repo.json && yarn build:post
packages/fringe/src/source.ts:41:3 - error TS2502: 'children' is referenced directly or indirectly in its own type annotation.

41   children: CreateNodeChildrenWithSourceType<T[], ChildrenResult<ReturnType<T>>[]>;
     ~~~~~~~~


Found 1 error.

See microsoft/TypeScript#46509 for relevant TypeScript issue.

Steps to Reproduce

  1. Change code in fringe
  2. Build code

Expected Behavior

[~/src/virtualstate/x]$ yarn build    
yarn run v1.22.10
$ tsc -b ./tsconfig.repo.json && yarn build:post
$ node correct-import-extensions.js
✨  Done in 3.00s.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions