-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't get pages to work on Windows 10 #795
Comments
On Chrome on android also with the same problem. Al so failing on Windows 10 Home Edition on Firefox. |
I'm using vue |
vitepress.vuejs.org is also deployed on netlify, but it doesn't seem to have this problem |
Similar issue vuepress/core#127. I'm afraid VitePress does not handle teleport SSR as well. |
The problem is related to the Teleport, I need to add the Maybe when |
@meteorlxy it seems to be not related to SSR, patching the Layout with the slots on #760 and adding the |
The patch is quite simple, just adding this vite plugin: {
name: 'vitepress-layout-slots-fix',
enforce: 'pre',
transform(code, id) {
if (id.includes('Layout.vue') && !id.endsWith('.css'))
return code.replace('<VPFooter />', '<VPFooter />\n<slot name="layout-bottom" />')
},
} |
Now the Netlify preview works again: https://deploy-preview-304--vite-plugin-pwa.netlify.app/ |
Describe the bug
Fails on
alpha-1
and onalpha-2
.When navigating from Home page to
Get Started
page, all content pages appers under thesidebar
, check first screenshot below.If I refresh the page, all pages seems to be ok, but if I click on the sidebar title, then the
Home
page is wrong, check last screnshot.I have tested the build with and without the PWA resulting in the same error.
The problem seems to be only on Windows 10 PRO, with development options enabled (on MacOS works), tested on private window on:
Reproduction
You can check a preview on Netlify here: https://deploy-preview-304--vite-plugin-pwa.netlify.app/
Clone this branch https://github.com/antfu/vite-plugin-pwa/tree/userquin/feat-new-theme
Before running the docs install deps and build the plugin, from root folder run:
pnpm install && pnpm run build
To run the docs on dev run from root folder:
pnpm run docs
.To build and run the docs using vitepress preview, run from root folder:
pnpm run docs:preview
.To build and run the docs using https, run from root folder:
pnpm run docs:serve
(will ask for creating and installing a TLS certificate forlocalhost
viahttps-localhost
dependency).On dev it works as expected, but building and serving via
serve dist
orvitepress serve
the problem is there on both cases.To disable the PWA, just go to
https://github.com/antfu/vite-plugin-pwa/blob/userquin/feat-new-theme/docs/vite.config.ts#L47
and adddisable: true
onVitePWA
plugin:Expected behavior
The pages should work as expected
System Info
Additional context
There is an
hydration error
and aTypeError
:Errors loading Home page and navigating to Get Started
Get Started page
F5 on Get Started page
Back to Home once F5 on Get Started page
Validations
The text was updated successfully, but these errors were encountered: