Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.9k
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Hello,
When I load the page, I see the following errors in the console:
This is what the whole page looks like: Now as soon as I remove the 'to' prop and use 'href' in the below line the page looks as how it is supposed to look. This is what the page looks like now: Versions
Environment:
|
BetaWas this translation helpful?Give feedback.
All reactions
Nevermind, I forked the codesandbox and removedcore-js
which removed all the errors.
The issue you're having is because of the unscoped styles found inpages/index.vue
.
Mainly the styling applied to.container
.container {margin:0 auto;min-height:100vh;display: flex;justify-content: center;align-items: center;text-align: center;}
When you don't usescoped
on your<style>
tags, in a component it will bleed into other components/pages. To avoid this you have to addscoped
to the<style>
tag.<style scoped>
.
The reason this is only happening when using theto
drop, is because theto
prop renderes a<nuxt-link>
, which doesn't cause a page redirect, but instead just swaps…
Replies: 6 comments 2 replies
-
@platoputhur Can you please create a minimal reproduction of the issue on CodeSandbox or CodePen. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Here is the link to code sandbox:https://codesandbox.io/s/condescending-dubinsky-9k8f0?file=/components/SiteHeader.vue If you change the |
BetaWas this translation helpful?Give feedback.
All reactions
-
I can't seem to run your codesandbox, looks like there's some errors while compiling. |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Nevermind, I forked the codesandbox and removed The issue you're having is because of the unscoped styles found in .container {margin:0 auto;min-height:100vh;display: flex;justify-content: center;align-items: center;text-align: center;} When you don't use The reason this is only happening when using the |
BetaWas this translation helpful?Give feedback.
All reactions
👍 2
-
@Hiws Thanks a lot. I wasted a lot of time on this one. Anyway index.vue is the only page missing |
BetaWas this translation helpful?Give feedback.
All reactions
-
BetaWas this translation helpful?Give feedback.
All reactions
-
Because you've installed Bootstrap 5, while BootstrapVue uses Bootstrap 4. |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
-
Thank your mention... |
BetaWas this translation helpful?Give feedback.
All reactions
This discussion was converted from issue #6258 on December 28, 2020 10:51.