codediodeio / sveltefire

Cybernetically enhanced Firebase apps
MIT License
1.64k stars 126 forks source link

Cannot use <Node> component #159

Open likeablegeek opened 4 weeks ago

likeablegeek commented 4 weeks ago

I'm trying to use the Realtime Database using the <Node> component per the documentation here:

https://sveltefire.fireship.io/rtdb/node-component

But, when I import Node from sveltefire -- even before I try to use the actual component -- I get this error:

The requested module '/node_modules/.vite/deps/sveltefire.js?v=15231cb7' does not provide an export named 'Node'

My import looks like this:

import { SignedIn, Node } from 'sveltefire'

I can import and use other components such as SignedIn without issue -- but Node and NodeList throw this error. I have tried this in +layout.svelte in the root of my application as well as +page.svelte at the root or in other routes. It makes no difference.

I am making the assumption that Sveltefire is properly installed and working since i can use the user store, SignedIn, etc.

How can I approach debugging this?