Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Resolve: Update to latest npm dependencies (19-10-2021) #1864

Merged
merged 3 commits into from
Oct 19, 2021

Conversation

gromxyz
Copy link
Contributor

@gromxyz gromxyz commented Oct 19, 2021

Verify commands:

  • yarn prebuild
  • yarn generate:types
  • yarn build-storybook
  • yarn storybook

Verify functionality:

  • Swap
  • Add/Remove liquidity
  • Tx history
  • Upgrade ETH.RUNE and BNB.RUNE
  • Send keystore/ledger
  • Swap UTXO

Not updated:

Closes #1863
Closes #1862

@gromxyz gromxyz self-assigned this Oct 19, 2021
@gromxyz gromxyz marked this pull request as ready for review October 19, 2021 09:46
@gromxyz gromxyz requested a review from veado October 19, 2021 09:46
Copy link
Collaborator

@veado veado left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

package.json Show resolved Hide resolved
Copy link
Collaborator

@veado veado left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue

Latest changes do not work on Linux, yarn dev failed:

[dev:electron] A JavaScript error occurred in the main process
[dev:electron] Uncaught Exception:
[dev:electron] Error: The module 'node_modules/usb-detection/build/Release/detection.node'
[dev:electron] was compiled against a different Node.js version using
[dev:electron] NODE_MODULE_VERSION 89. This version of Node.js requires
[dev:electron] NODE_MODULE_VERSION 98. Please try re-compiling or re-installing

Following steps did not work:

  • Install everything from scratch rm yarn.lock && rm -rf node_modules && yarn`
  • Re-build native modules using ./node_modules/.bin/electron-rebuild (as described in README of node-usb-detection, chapter Install for Electron)
  • Running different Node versions: v15 + v16
  • Downgrade "@ledgerhq/hw-transport": "^6.2.0", "@ledgerhq/hw-transport-node-hid-singleton": "^6.2.0" (same versions in ledger-thorchain-js) see UPDATE below

UPDATE:

+ update yarn.lock to stick with usb-detection@4.10.0 by reverting
changes in `resolved` url

All needed to avoid issues of running usb-detection behind the scenes -
see
#1864 (review)
for more details
yarn.lock Outdated
Comment on lines 19117 to 19118
resolved "https://registry.yarnpkg.com/usb-detection/-/usb-detection-4.10.0.tgz#0f8a3b8965a5e4e7fbee1667971ca97e455ed11f"
integrity sha512-YUzVWXwfSviE2pInXCKYXhR5heY9GUzlWsdZYxb/Br1Xela6P31A0KDHm7XW0Wsku1HwrokZx+/OD8cZSPHR3w==
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sticking to sources of usb-detection-4.10.0 are important here.

@veado veado merged commit 0c1ea38 into develop Oct 19, 2021
@veado veado deleted the issue-1863/update-npm-dependencies branch October 19, 2021 15:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update to latest npm dependencies (19-10-2021) [Ledger] CERTIFICATE HAS EXPIRED again (local build only)
2 participants