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.

Vue Warn: Error in beforeCreate

See original GitHub issue

At launch I got this warning :

[Vue warn]: Error in beforeCreate hook: "ReferenceError: document is not defined"

found in

---> <Parallax> at /Users/jjuszczak/Projekte/Privat/vue-parallax/src/components/Parallax.vue

And you can find this in the your file ligne 88.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

0reactions
aperturelesscommented, Aug 23, 2022

decided what?

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Vue warn]: Error in beforeCreate hook: "ReferenceError
The component try to access the DOM while Nuxt render the page on the server side, the solution is to wrap it in...
Read more >
[Vue warn]: Error in beforeCreate hook: "TypeError ... - GitHub
The problem is that you try to console.log an object so it is first converted to JSON. Then it seems something is not...
Read more >
Error in beforeCreate hook: "ReferenceError: document is not ...
The component try to access the DOM while Nuxt render the page on the server side, the solution is to wrap it in...
Read more >
Uninitialized properties of a Vue instance ... - Rule | DeepScan
In Vue's certain lifecycle methods, some properties are not yet initialized as ... [Vue warn]: Error in beforeCreate hook: TypeError: this.
Read more >
Server-Side Rendering (SSR) - Vue.js
A server-rendered Vue.js app can also be considered "isomorphic" or "universal", ... The only hooks that are called during SSR are beforeCreate and...
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