Open Strahinja opened 4 years ago
I was able to confirm this is specifically an issue of create-nuxt-app
. I made a test app in Codesandbox.io by forking the codesandbox-nuxt
repository and set it up to use @nuxtjs/vuetify
. After generating and deploying to Netlify, the error page on the website doesn't have the issue.
Steps to reproduce
yarn create nuxt-app errtest
cd errtest
Edit
nuxt.config.js
(add afterbuild
section):I used Apache local virtual server named
http://errtest
servingerrtest/dist
folder as document root. Editstatic/.htaccess
:yarn generate
Navigate to
http://errtest
(works), then for example tohttp://errtest/nonexistant
. Custom error page is shown with the text "404 Not Found", but clicking anynuxt-link
, such as the bottom one titled "Home page", or the "Inspire" menu item, seems to somehow corrupt the Vue internal state. Navigation menu can be opened, but anynuxt-link
such as the "Inspire" menu item doesn't display theinspire.vue
page, even though URL seems to be updated tohttp://errtest/inspire
.