Skip to content

New error: Property 'value' does not exist on type 'never' #37565

@amcasey

Description

@amcasey

https://github.com/linkedin/css-blocks/blob/6023475e9ab9a01cda6daa71986a9b4932c16ecd/packages/@css-blocks/core/src/BlockTree/Block.ts#L443

packages/@css-blocks/core/src/BlockTree/Block.ts:443:48 - error TS2339: Property 'value' does not exist on type 'never'.

443           let klass = otherBlock.getClass(next.value);
                                                   ~~~~~

packages/@css-blocks/core/src/BlockTree/Block.ts:445:32 - error TS2339: Property 'next' does not exist on type 'never'.

445             let another = next.next();
                                   ~~~~

To repro:

  1. yarn
  2. tsc -b -f packages

Metadata

Metadata

Assignees

No one assigned

    Labels

    Working as IntendedThe behavior described is the intended behavior; this is not a bug

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions