nostr
package: get tests passing in the browser #490
No reviewers
Labels
No Label
1000k
100k
10k
200k
20k
500k
50k
5k
75k
backend
blocked:design
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
P1
P2
P3
question
scope:intl
scope:nip
scope:query_tracing
scope:ux
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Kieran/snort#490
Loading…
Reference in New Issue
No description provided.
Delete Branch "nostr-package-browser-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I can now truly call it an isomorphic library: it does in fact work in the browser as well as node. Will implement NIP-07 next.
Deploying with
Cloudflare Pages
5f29ae0
View logs
Module not found: Error: Can't resolve '@snort/nostr' in '/opt/buildhome/repo/packages/app/src'
So after dealing with more nonsense from a broken ecosystem, the tests now pass but only on node versions larger than 16.
The root cause is that the
uuid
package is trying to usecrypto.getRandomValues
in tests. I don't know why it doesn't use node'scrypto
module instead. I don't want to know; it's part of the legacy code, and I don't think that trying to fix this is worth the time.