You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use the svelte components; however, they all render as undefined. Here is a minimal example that fails. I have a development relay I'm working with.
test:39 [HMR][Svelte] Unrecoverable HMR error in <Root>: next update will trigger a full reload
+page.svelte:18 dev _NDKUser {ndk: NDK, profile: undefined, _npub: 'npub1srwzlgp39charftweq5k28xeea4lr02fmwu0jhyhcj9sfdhtkjxstqm070', _pubkey: undefined, relayUrls: Array(0), …}
@nostr-dev-kit_ndk-svelte-components.js?v=b5da03b9:294275 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'pool')
at update (@nostr-dev-kit_ndk-svelte-components.js?v=b5da03b9:294275:45)
The html source for the Name component: <span class="name undefined"></span>
The text was updated successfully, but these errors were encountered:
you are creating ndk in the onMount call, which will run after rendering the page, so ndk will in fact be undefined on first run; either instantiate ndk outside the onMount or wrap your use in {#if ndk}
I'm trying to use the svelte components; however, they all render as undefined. Here is a minimal example that fails. I have a development relay I'm working with.
Console logs:
The html source for the Name component:
<span class="name undefined"></span>
The text was updated successfully, but these errors were encountered: