Skip to content

Using this lib in Angular #15

@jetchoong-dev

Description

@jetchoong-dev

[QUESTION]
Hello, I am wondering if this library is usable in Angular application? I have tried installing this onto Angular and getting compilation error while serving it locally

Error: ./node_modules/buffer/index.js
Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):
Error: ENOENT: no such file or directory, open 'D:\projects\sae-ng-global\node_modules\buffer\index.js'

Error: ./node_modules/path/path.js
Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):
Error: ENOENT: no such file or directory, open 'D:\projects\sae-ng-global\node_modules\path\path.js'

I am able to overcome these 2 errors by manually installing buffer and path with npm i -D buffer path but I am still getting a runtime error from browser console where it complains

ERROR Error: Uncaught (in promise): ReferenceError: process is not defined
ReferenceError: process is not defined

Is there any setting I can configure to make it usable in Angular? Am running Angular 11.5.2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions