Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Revert "fix: Next Link not updating issue" #169

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

Merged
NathanWalker merged 1 commit into main from revert-168-main
Apr 10, 2025
Merged

Conversation

Copy link
Contributor

@NathanWalker NathanWalker commented Apr 10, 2025

Reverts #168

@NathanWalker NathanWalker merged commit 242d859 into main Apr 10, 2025
0 of 2 checks passed
@NathanWalker NathanWalker deleted the revert-168-main branch April 10, 2025 20:30
Copy link
Contributor

sadobass commented Apr 11, 2025
edited
Loading

In the current state, clicking NEXT causes the same error.
"Error: vitepress data not properly injected in app"
스크린샷 2025年04月11日 오후 5 23 10

/docs/node_modules/vitepress/dist/client/app/index.js
 const data = initData(router.route);
 app.provide(dataSymbol, data); 
/docs/node_modules/vitepress/dist/client/app/data.js
 export function useData() {
 const data = inject(dataSymbol); 
 if (!data) {
 throw new Error('vitepress data not properly injected in app');
 }
 return data;
 }

However, when using vitepress' DefaultTheme.Layout, prev/next worked fine.
I think you should check @nativescript/vitepress-theme.
/docs/.vitepress/theme/index.js

import Theme from '@nativescript/vitepress-theme'
import '@nativescript/vitepress-theme/theme/style.css'
import Layout from './Layout.vue'
export default {
 extends: Theme(),
 Layout,
}

Layout.vue

<script setup>
import DefaultTheme from 'vitepress/theme'
</script>
<template>
 <DefaultTheme.Layout />
</template>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /