-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
bug: InjectionKey is not working #267
Comments
and this is my package version |
Sorry but I cannot reproduce it with the following code: import DefaultTheme from 'vitepress/theme'
import type { Theme } from 'vitepress'
import { InjectionKey, NolebaseInlineLinkPreviewPlugin } from '@nolebase/vitepress-plugin-inline-link-preview/client'
import 'virtual:uno.css'
export default {
extends: DefaultTheme,
enhanceApp({ app }) {
// register your custom global components
app.use(NolebaseInlineLinkPreviewPlugin)
app.provide(InjectionKey, {
popupWidth: 100,
popupHeight: 100,
locales: {
'zh-TW': {
popup: {
loading: '加載中...',
loadingAriaLabel: '加載中',
iframeAriaLabel: '連結預覽',
},
},
},
})
},
} satisfies Theme Can you provide me a minimal repo with StackBlitz or CodeSandbox? |
Sorry for the delay, I was in Hackathon last week and we had no time to focus on Nolebase communities. Apologize for the delay, really! Let me take a look into this. |
I've created another repro on StackBlitz but I cannot understand why the injection key is not working... |
With the assist from @Jack-Works, he told me that such issue may caused by non-equal I will need to investigate deeper down to find out why. |
https://nolebase-integrations.ayaka.io/pages/zh-CN/integrations/vitepress-plugin-inline-link-preview/configuration#%E5%A6%82%E4%BD%95%E5%9C%A8-vitepress-%E4%B8%AD%E8%BF%9B%E8%A1%8C%E9%85%8D%E7%BD%AE
This is my configuration in index.js
its not working
component is still the default style.
The text was updated successfully, but these errors were encountered: