question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Firebase / Auth] Cannot read property '$meta' of undefined

See original GitHub issue

Describe the bug I just install the plugin in my project, change the necessary files and run rss:serve. When I access any page I have this error.

Additional context Log in the console:

TypeError: Cannot read property '$meta' of undefined

1 anonymous
  D:\Code\js\approche\node_modules\vue-server-renderer\build.js:8437

2 anonymous
  D:\Code\js\approche\node_modules\vue-server-renderer\build.js:8399

3 Object.renderToString
  D:\Code\js\approche\node_modules\vue-server-renderer\build.js:8575

4 Renderer.render
  D:\Code\js\approche\node_modules\@uvue\server\lib\Renderer.js:19

5 ConnectAdapter.renderMiddleware
  D:\Code\js\approche\node_modules\@uvue\server\lib\adapters\ConnectAdapter.js:57

Please indicate versions of:

node: v8.9.4
vue-cli: 3
uvue: 0.1.0-alpha
os: Windows 10
browser: Chrome

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
chymzcommented, Dec 6, 2018

Maybe a track for you:

Just make a UVue plugin in src/plugins/firebase.js:

export default {
  beforeStart({ store }) {
    return new Promise(resolve => {
      firebase.auth().onAuthStateChanged(user => {
        if (user) store.dispatch('auth/autoSignIn', user)
        resolve()
      })
    })
  }
}

And setup this plugin in uvue.config.js:

export default {
  plugins: ['@/plugins/firebase']
}

This way app start process will wait your callback.

0reactions
chymzcommented, Dec 7, 2018

This plugin helps you to have server side rendered pages with meta infos indeed but content of your pages will be crawlable by search engines. If you have any question, join us on Discord: https://discordapp.com/invite/3ZZBmFs

If related issue is resolve I close it 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read properties of undefined (reading 'tenantId')
Firebase may not have initialised before you call getAuth() or getFirestore() in SignUp.vue . It's best to initialize Firebase and all its ...
Read more >
cannot read properties of undefined (reading 'auth') - You.com
1. Add undefined check on variable. To fix the “cannot read property of undefined” error, check that the value is not undefined before...
Read more >
Auth | JavaScript SDK | Firebase JavaScript API reference
The current Auth instance's language code. This is a readable/writable property. When set to null, the default Firebase Console language setting is applied....
Read more >
firebaseAuth. cannot read property 'then' of undefined. - Reddit
The issue here seems to be that you're not returning the promise from the firebase create user call. Return the promise from Auth.register()...
Read more >
Uncaught (in promise) TypeError: Cannot read properties of ...
Any help would be appreciated. error: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'body'). apex · lightning- ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found