Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using this lib in Angular #15

Open
jetchoong-dev opened this issue Sep 2, 2021 · 0 comments
Open

Using this lib in Angular #15

jetchoong-dev opened this issue Sep 2, 2021 · 0 comments

Comments

@jetchoong-dev
Copy link

jetchoong-dev commented Sep 2, 2021

[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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant