Nuxt.js: css w'ont load on refresh

Created on 11 Aug 2017  路  5Comments  路  Source: nuxt/nuxt.js

I don't know if i'm doing something wrong but when I refresh a another directory then the principal one the css won't load.. I got to go back to the main route and click from the menu so that the page render correctly..

This question is available on Nuxt.js community (#c1183)
help-wanted

Most helpful comment

This is likely a result of the CSS files not being linked to correctly from other pages because you are using a relative path rather than an absolute path. Take a look at your network log when you navigate to those pages and compare the paths for your CSS files with those that get loaded when you are at the root location. (Just a hunch. Please provide a little more info if that's not the case)

All 5 comments

This is likely a result of the CSS files not being linked to correctly from other pages because you are using a relative path rather than an absolute path. Take a look at your network log when you navigate to those pages and compare the paths for your CSS files with those that get loaded when you are at the root location. (Just a hunch. Please provide a little more info if that's not the case)

Feel free to re-open if @bayssmekanique did not solve your answer.

@bayssmekanique were you able to find out what your problem is? I'm having a similar situation..

@jaubut was the user having the issue. He has not responded as to whether this resolved the issue or not.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

maicong picture maicong  路  3Comments

o-alexandrov picture o-alexandrov  路  3Comments

jaredreich picture jaredreich  路  3Comments

vadimsg picture vadimsg  路  3Comments

vadimsg picture vadimsg  路  3Comments