Skip to content
New issue

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

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

Already on GitHub? # to your account

Process is not defined #7095

Open
yttiiz opened this issue Jan 4, 2024 · 2 comments
Open

Process is not defined #7095

yttiiz opened this issue Jan 4, 2024 · 2 comments

Comments

@yttiiz
Copy link

yttiiz commented Jan 4, 2024

Hi, i'm using the Audius (client side) sdk for my portfolio. Unfortunately, since the last release, i got this error : Uncaught ReferenceError: process is not defined. In browser, there no process variable attach to window. I suppose this error is coming from the bundler. Hope, it will help.

Thanks for your work guys !!!

@samgutentag
Copy link
Contributor

Hey @yttiiz! sorry for the delay getting back to you here, holidays and all that.

If your bundler doesn't automatically polyfill node libraries (like when using create-react-app v5) you will need to use the web3 script tag instead of the web3 npm package.

<script src="https://cdn.jsdelivr.net/npm/web3@latest/dist/web3.min.js"></script>

@yttiiz
Copy link
Author

yttiiz commented Feb 4, 2024

Hello @samgutentag . Thanks for the answer.

Actually, i'm already using the web3 script tag in my index.html. I use only Vanillla JS (and no bundler) for my portfolio. I just follow those steps : Audius sdk with HTML + JS

Capture d’écran du 2024-03-04 18-21-22

Then the error appears in a node_modules file util.js in the util folder.
Capture d’écran du 2024-03-04 18-24-11

I found this on the internet : process variable in webpack config
And that's why I was talking about the bundler, not mine but the Audius sdk one.

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

No branches or pull requests

2 participants