mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-04-16 14:03:19 -04:00
Add console dependency which is required for some development environments. Add troubleshooting section to README.md
This commit is contained in:
parent
34a76819bd
commit
26e189d5cb
41
README.md
41
README.md
@ -12,6 +12,7 @@ This application is a lightly modified [create-react-app](https://github.com/fac
|
||||
4. Install protobuf for your system:<br>
|
||||
mac: `brew install protobuf`<br>
|
||||
linux: `apt install protobuf-compiler`
|
||||
NOTE: You may need to upgrade to v3.19.1 manually if your package manager installs an older version.
|
||||
5. Download `protoc-gen-grpc-web` plugin and make executable as [shown here](https://github.com/grpc/grpc-web#code-generator-plugin).
|
||||
6. `cd haveno-ui-poc`
|
||||
7. `npm install`
|
||||
@ -35,7 +36,47 @@ Running the [top-level API tests](./src/HavenoDaemon.test.ts) is a great way to
|
||||
5. Install protobuf for your system:<br>
|
||||
mac: `brew install protobuf`<br>
|
||||
linux: `apt install protobuf-compiler`
|
||||
NOTE: You may need to upgrade to v3.19.1 manually if your package manager installs an older version.
|
||||
6. Download `protoc-gen-grpc-web` plugin and make executable as [shown here](https://github.com/grpc/grpc-web#code-generator-plugin).
|
||||
7. `cd haveno-ui-poc`
|
||||
8. `npm install`
|
||||
9. `npm test` to run all tests or `npm run test -- -t 'my test'` to run tests by name.
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
### Running Haveno UI POC results in error stack:
|
||||
|
||||
```
|
||||
Error: error:0308010C:digital envelope routines::unsupported
|
||||
at new Hash (node:internal/crypto/hash:67:19)
|
||||
at Object.createHash (node:crypto:130:10)
|
||||
...
|
||||
```
|
||||
|
||||
If you are using node.js v17+, this is caused by a bug in a dependency.
|
||||
Run the following command in your terminal:
|
||||
```
|
||||
export NODE_OPTIONS=--openssl-legacy-provider
|
||||
```
|
||||
|
||||
### Running envoy in Docker fails with permission error:
|
||||
|
||||
```
|
||||
docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.35/containers/create: dial unix /var/run/docker.sock: connect: permission denied. See 'docker run --help'.
|
||||
```
|
||||
|
||||
Run the following command in your terminal:
|
||||
```
|
||||
sudo chmod 666 /var/run/docker.sock
|
||||
```
|
||||
|
||||
### Test fails with error:
|
||||
|
||||
`wallet and network is not yet initialized`
|
||||
|
||||
Mine some blocks in monerod to an address:
|
||||
1. In the monerod console enter `start_mining <address> 1`
|
||||
2. Wait for some blocks to show up.
|
||||
3. Enter `stop_mining`
|
||||
|
||||
|
||||
|
11
package-lock.json
generated
11
package-lock.json
generated
@ -15,6 +15,7 @@
|
||||
"@types/node": "^12.20.10",
|
||||
"@types/react": "^17.0.3",
|
||||
"@types/react-dom": "^17.0.3",
|
||||
"console": "^0.7.2",
|
||||
"google-protobuf": "^3.0.0",
|
||||
"grpc-web": "^1.2.1",
|
||||
"react": "^17.0.2",
|
||||
@ -5896,6 +5897,11 @@
|
||||
"node": ">=0.8"
|
||||
}
|
||||
},
|
||||
"node_modules/console": {
|
||||
"version": "0.7.2",
|
||||
"resolved": "https://registry.npmjs.org/console/-/console-0.7.2.tgz",
|
||||
"integrity": "sha1-+aQzEkkpFZG3v5v/qOIFNW8gqfA="
|
||||
},
|
||||
"node_modules/console-browserify": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.2.0.tgz",
|
||||
@ -25821,6 +25827,11 @@
|
||||
"resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-1.6.0.tgz",
|
||||
"integrity": "sha512-e54B99q/OUoH64zYYRf3HBP5z24G38h5D3qXu23JGRoigpX5Ss4r9ZnDk3g0Z8uQC2x2lPaJ+UlWBc1ZWBWdLg=="
|
||||
},
|
||||
"console": {
|
||||
"version": "0.7.2",
|
||||
"resolved": "https://registry.npmjs.org/console/-/console-0.7.2.tgz",
|
||||
"integrity": "sha1-+aQzEkkpFZG3v5v/qOIFNW8gqfA="
|
||||
},
|
||||
"console-browserify": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.2.0.tgz",
|
||||
|
@ -10,6 +10,7 @@
|
||||
"@types/node": "^12.20.10",
|
||||
"@types/react": "^17.0.3",
|
||||
"@types/react-dom": "^17.0.3",
|
||||
"console": "^0.7.2",
|
||||
"google-protobuf": "^3.0.0",
|
||||
"grpc-web": "^1.2.1",
|
||||
"react": "^17.0.2",
|
||||
@ -31,7 +32,9 @@
|
||||
"react-app",
|
||||
"react-app/jest"
|
||||
],
|
||||
"ignorePatterns": ["**/*_pb.js"]
|
||||
"ignorePatterns": [
|
||||
"**/*_pb.js"
|
||||
]
|
||||
},
|
||||
"browserslist": {
|
||||
"production": [
|
||||
|
Loading…
x
Reference in New Issue
Block a user