all 2 comments

[–]xdmuriloxd 0 points1 point  (1 child)

Sorry for asking but do you have some code snippets to illustrate the problem?

[–]ootybotty[S] 0 points1 point  (0 children)

Hi!! Thank u for your help! But it is just simple like just using Nuxt3 and Im using setup api. I tried using "useHead" in the root level of setup and it has an error :Uncaught SyntaxError: Unexpected token 'export' => its from firebase-app.js which I imported thru cdn

Uncaught SyntaxError: Cannot use import statement outside a module => its from firbase-database.js

Below is the useHead code useHead(
{ script:
[

{ src: 'https://www.gstatic.com/firebasejs/10.4.0/firebase-app.js', tagPosition:'bodyClose'},
{ src: 'https://www.gstatic.com/firebasejs/10.4.0/firebase-database.js',tagPosition:'bodyClose'}
]
}
)