Replies: 1 comment 1 reply
-
Have the same issue when import getFirestore |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When using firebase I get this error
Syntax Error: Function statements require a function name
when I try to initialize firebase.I am assuming it has something to do with ssr or prerendering, but I have another SvelteKit project that is working with firebase. I compared all of my config, +layout, +page files with this new project and I can't see that I turned off ssr or prerendering anywhere.
Also I see other peoples examples and they don't seem to indicate that I need some kind of config/setting to deal with this.
The code below throws an error
src/lib/firebase.ts
src/routes/+page.svelte
I understand that we should use +page/+layout.ts for loading data,, but i am trying to use sveltefire.
Also i just tried it and get the same error importing (initializing) in +layout.server.ts
Beta Was this translation helpful? Give feedback.
All reactions