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

Uncaught ReferenceError: global is not defined #64

Closed
37Rb opened this issue Jul 1, 2022 · 1 comment
Closed

Uncaught ReferenceError: global is not defined #64

37Rb opened this issue Jul 1, 2022 · 1 comment

Comments

@37Rb
Copy link

37Rb commented Jul 1, 2022

I installed vue with npm init vue@latest and then did npm i ethers vue-dapp but as soon as I add import { VueDapp } from "vue-dapp"; to my main.ts I get this error in the console:

[vite] connecting...
client.ts:53 [vite] connected.
_stream_readable.js:48 Uncaught ReferenceError: global is not defined
    at node_modules/readable-stream/lib/_stream_readable.js (_stream_readable.js:48:21)
    at __require (chunk-7TBCKYSC.js?v=84f0b049:11:50)
    at node_modules/readable-stream/readable-browser.js (readable-browser.js:1:28)
    at __require (chunk-7TBCKYSC.js?v=84f0b049:11:50)
    at node_modules/keccak/lib/api/keccak.js (keccak.js:1:23)
    at __require (chunk-7TBCKYSC.js?v=84f0b049:11:50)
    at node_modules/keccak/lib/api/index.js (index.js:1:22)
    at __require (chunk-7TBCKYSC.js?v=84f0b049:11:50)
    at node_modules/keccak/js.js (js.js:1:18)
    at __require (chunk-7TBCKYSC.js?v=84f0b049:11:50)

I'm new to both vue and vue-dapp. Any idea how to fix?

@37Rb
Copy link
Author

37Rb commented Jul 1, 2022

@37Rb 37Rb closed this as completed Jul 1, 2022
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