Skip to content

Commit

Permalink
fix Buffer not defined error
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaghettiOverload committed Jul 19, 2023
1 parent 40d3622 commit 58eafce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<script type="module">
import { Buffer } from "buffer";
window.Buffer = Buffer;
</script>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/src/assets/vectors/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"appollo": "^0.1.13",
"axios": "^0.27.2",
"bignumber.js": "^9.0.2",
"buffer": "^6.0.3",
"csstype": "^3.0.10",
"cudosjs": "^1.2.1",
"firebase": "^9.9.1",
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3926,7 +3926,7 @@ buffer-from@^1.0.0:
resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5"
integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==

[email protected]:
[email protected], buffer@^6.0.3:
version "6.0.3"
resolved "https://registry.yarnpkg.com/buffer/-/buffer-6.0.3.tgz#2ace578459cc8fbe2a70aaa8f52ee63b6a74c6c6"
integrity sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==
Expand Down

0 comments on commit 58eafce

Please sign in to comment.