Skip to content

Cannot find name 'Buffer' on Quagga2 type-definitions #509

@MasterDataBase

Description

@MasterDataBase

Hi all

I'm start using Quagga, and facing some problem after install Quagga on my Angular project.

And after the tring to import the library import Quagga from '@ericblade/quagga2';

I'm facing the following problem:
Error: node_modules/@ericblade/quagga2/type-definitions/quagga.d.ts:784:33 - 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.

I tried to install the @types/node and also insert the Type:node in the tsconfig file, but without luck, someone can point me to the right direction?

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