Skip to content

Build error when using with pnpm and nestjs #92

@rajivkr

Description

@rajivkr

Hello, I am getting this error, when I building my nestjs application using pnpm.

`node_modules/.pnpm/csv-writer@1.6.0/node_modules/csv-writer/src/index.ts:11:14 - error TS2742: The inferred type of 'createArrayCsvStringifier' cannot be named without a reference to '.pnpm/csv-writer@1.6.0/node_modules/csv-writer/src/lib/csv-stringifiers/array'. This is likely not portable. A type annotation is necessary.

11 export const createArrayCsvStringifier = (params: ArrayCsvStringifierParams) =>
~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/.pnpm/csv-writer@1.6.0/node_modules/csv-writer/src/index.ts:14:14 - error TS2742: The inferred type of 'createObjectCsvStringifier' cannot be named without a reference to '.pnpm/csv-writer@1.6.0/node_modules/csv-writer/src/lib/csv-stringifiers/object'. This is likely not portable. A type annotation is necessary.

14 export const createObjectCsvStringifier = (params: ObjectCsvStringifierParams) =>
~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/.pnpm/csv-writer@1.6.0/node_modules/csv-writer/src/index.ts:17:14 - error TS2742: The inferred type of 'createArrayCsvWriter' cannot be named without a reference to '.pnpm/csv-writer@1.6.0/node_modules/csv-writer/src/lib/csv-writer'. This is likely not portable. A type annotation is necessary.

17 export const createArrayCsvWriter = (params: ArrayCsvWriterParams) =>
~~~~~~~~~~~~~~~~~~~~
node_modules/.pnpm/csv-writer@1.6.0/node_modules/csv-writer/src/index.ts:20:14 - error TS2742: The inferred type of 'createObjectCsvWriter' cannot be named without a reference to '.pnpm/csv-writer@1.6.0/node_modules/csv-writer/src/lib/csv-writer'. This is likely not portable. A type annotation is necessary.

20 export const createObjectCsvWriter = (params: ObjectCsvWriterParams) =>
~~~~~~~~~~~~~~~~~~~~~
node_modules/.pnpm/csv-writer@1.6.0/node_modules/csv-writer/src/index.ts:20:14 - error TS2742: The inferred type of 'createObjectCsvWriter' cannot be named without a reference to '.pnpm/csv-writer@1.6.0/node_modules/csv-writer/src/lib/lang/object'. This is likely not portable. A type annotation is necessary.

20 export const createObjectCsvWriter = (params: ObjectCsvWriterParams) =>
~~~~~~~~~~~~~~~~~~~~~
node_modules/.pnpm/csv-writer@1.6.0/node_modules/csv-writer/src/lib/csv-writer-factory.ts:39:5 - error TS2742: The inferred type of 'createObjectCsvWriter' cannot be named without a reference to '.pnpm/csv-writer@1.6.0/node_modules/csv-writer/src/lib/lang/object'. This is likely not portable. A type annotation is necessary.

39 createObjectCsvWriter(params: ObjectCsvWriterParams) {`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions