Skip to content

Unresolved reference to IHeaders path definition in @confluentinc/schemaregistry #491

@lpessoa

Description

Environment Information

  • OS Mac:
  • Node lts/jod:
  • NPM 11x
  • confluent-kafka-javascript version 1.9.0:

Steps to Reproduce
Create an empty TS project referencing both libs as dependencies.

"@confluentinc/kafka-javascript": "1.9.0",
"@confluentinc/schemaregistry": "1.9.0",

Without setting "skipLibCheck": true we get the following error:

node_modules/@confluentinc/schemaregistry/dist/serde/avro.d.ts:6:26 - error TS2307: Cannot find module '../../types/kafkajs' or its corresponding type declarations.

6 import { IHeaders } from "../../types/kafkajs";
                           ~~~~~~~~~~~~~~~~~~~~~

@confluentinc/schemaregistry serdes reference the IHeaders types from the root and this is not resolved during the build process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions