Skip to content

Conversation

@Jovonni
Copy link
Contributor

@Jovonni Jovonni commented Aug 16, 2024

Fixes noble hashes issue with ui.

Errors observed here:
#18 (comment)

@Jovonni Jovonni self-assigned this Aug 16, 2024
@Jovonni Jovonni force-pushed the fix/ui-noble-hashes branch from 3ea7159 to ce101b9 Compare August 16, 2024 18:25
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is so the uI can resolve the noble hashes deps that the workspace defines

Copy link
Member

Choose a reason for hiding this comment

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

I don't understand. I can't find any occurrences of @noble/hashes in the ui directory.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

its a sub-dependency from @cosmjs/proto-signing 🫠

✘ [ERROR] Could not resolve "@noble/hashes/sha3"

    ../node_modules/@cosmjs/proto-signing/node_modules/@cosmjs/crypto/build/keccak.js:4:23:
      4 │ const sha3_1 = require("@noble/hashes/sha3");
        ╵                        ~~~~~~~~~~~~~~~~~~~~

  The module "./sha3.js" was not found on the file system:

    ../node_modules/@noble/hashes/package.json:116:17:
      116 │       "require": "./sha3.js"
          ╵                  ~~~~~~~~~~~

First encountered here

@Jovonni Jovonni marked this pull request as ready for review August 16, 2024 20:49
@Jovonni Jovonni requested a review from dckc August 16, 2024 20:52
Copy link
Member

@dckc dckc left a comment

Choose a reason for hiding this comment

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

I don't see how ui depends on @noble/hashes

kubectl exec -i agoriclocal-genesis-0 -c validator -- bash -c "yarn add @agoric/vow@0.1.1-dev-9c9e5cf.0"
kubectl exec -i agoriclocal-genesis-0 -c validator -- bash -c "yarn add @agoric/async-flow@0.1.1-dev-9c9e5cf.0"
make copy-bn-js
# make copy-bn-js
Copy link
Member

Choose a reason for hiding this comment

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

why keep the commented-out code?


# your deployer address made from make add-address
ADDR=agoric1mqvg26gpv6xzch2v0wpv569md3c2z4cdxq9clz
ADDR=agoric1jwuskhnxkjw50vnx3ak8qwmvy8f43sfdxnd438
Copy link
Member

Choose a reason for hiding this comment

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

is this change relevant?

"lint": "tsc && eslint '**/*.js'",
"lint:fix": "eslint --fix '**/*.js'"
"lint:fix": "eslint --fix '**/*.js'",
"e2e": "make e2e"
Copy link
Member

Choose a reason for hiding this comment

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

this looks like a build commit, not a fix

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
Copy link
Member

Choose a reason for hiding this comment

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

I don't understand. I can't find any occurrences of @noble/hashes in the ui directory.

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

Successfully merging this pull request may close these issues.

3 participants