browserify / browserify/createHash

Version 1.1.3 fails in browser - Buffer is not defined

Open
#20 8 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
53
Forks
37
PR merge metrics
No merged PRs in 30d

Description

We wanted to use the package to create hashes in Chrome, but on initial testing it seems like this package doesn't work in the browser.

When attempting to import the package it fails with the error message:

```
Buffer is not defined
```

You can see an minimal example in this Code Sandbox:
https://codesandbox.io/s/x2xyrq2plp

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the minimal CodeSandbox reproduction and the package import path in createHash. Confirm the failure in Chrome, then trace the browser bundle's Buffer dependency; done means the package imports and creates hashes in Chrome without “Buffer is not defined”.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.