C
C
ceeed2021-12-20 12:26:18
JavaScript
ceeed, 2021-12-20 12:26:18

util.js:109 Uncaught ReferenceError: process is not defined error after installing Torus. How to solve this problem?

I want to authorize using the Torus crypto wallet. Installed torus, as written in the documentation

After installing the library and importing Torus, as shown in the documentation, I get an error:

Uncaught ReferenceError: process is not defined
at node_modules/util/util.js (util.js:109)
at __require2 (chunk-UC7LELEO.js?v=db47e0f3:48)
at node_modules/web3-core-requestmanager/lib/index.js (index.js:20)
at __require2 (chunk-UC7LELEO.js?v=db47e0f3:48)
at node_modules/web3-core/lib/index.js (index.js:22)
at __require2 (chunk-UC7LELEO.js?v=db47e0f3:48)
at node_modules/web3-eth-contract/lib/index.js (index.js:30)
at __require2 (chunk-UC7LELEO.js?v=db47e0f3:48)
at index.js:45

The project is written in react, the assembler is vite Also installed and used by web3.js

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question