Skip to content

Cannot find module errors - starting in 2.0.12 #506

@westlakem

Description

@westlakem

I was running 2.0.10 just fine and then we tried to update to 2.0.14 and ran into the following issue. 2.0.11 works just fine, 2.0.12 broke it.

Error: node_modules/csvtojson/v2/Converter.d.ts:1:55 - error TS2307: Cannot find module 'stream' or its corresponding type declarations.

1 import { Transform, TransformOptions, Readable } from "stream";
                                                        ~~~~~~~~


Error: node_modules/csvtojson/v2/ParseRuntime.d.ts:39:21 - error TS2591: Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.

39     csvLineBuffer?: Buffer;
                       ~~~~~~


Error: node_modules/csvtojson/v2/index.d.ts:1:34 - error TS2307: Cannot find module 'stream' or its corresponding type declarations.

1 import { TransformOptions } from "stream";

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