-
Notifications
You must be signed in to change notification settings - Fork 61
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
Feature-Request: browser compatibility #60
Comments
I'm not an expert in the project by any means, but I'm pretty sure that it only supports a NodeJS environment. When you use Angular, you're trying to use verror in a browser environment (which doesn't have modules such as "stream" available). This doesn't look like it's an issue with verror, unless this is meant to be a feature request for implementing a browser version of verror. If that was done, it would probably have to be in a limited form. It appears actually that the error you're getting isn't even from verror directly but from one of its dependencies. Unless verror switches dependencies or re-implements their own version which doesn't require any node modules, they can't fix this "issue." |
yes you are right, i changed the title to a feature request. |
Is there any progress on this, would love to use this in an Angular app too! |
I don't know of anybody working on it. Sorry. |
I opened a PR exactly for that: #59 |
I just published
https://www.npmjs.com/package/@openagenda/verror
And I fixed this issue: #78 |
@bertho-zero Your fork on bitbucket seem to be private, unless it was deleted. Can you make that public. |
I extracted the repo: https://github.com/Oagenda/verror I reverted to using prototypes rather than classes so I could create errors without |
@bertho-zero any chance you can also add TypeScript types? would be much appreciated |
I've never used TypeScript, but someone familiar with it can open a PR. |
If i use angular with verror, i get
ERROR in ./node_modules/assert-plus/assert.js
Module not found: Error: Can't resolve 'stream' in '..\myapp\node_modules\assert-plus'
in the compiler
The text was updated successfully, but these errors were encountered: