Open thunderwin opened 5 days ago
Please show the relevant code. It shouldn't happen unless you're importing defineConfig within your markdown/vue component.
even I use defult config, still error
import { defineConfig } from 'vitepress'
// https://vitepress.dev/reference/site-config
export default defineConfig({
title: 'Homepage',
description: 'Homepage',
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: 'Home', link: '/' },
{ text: 'Examples', link: '/markdown-examples' }
],
sidebar: [
{
text: 'Examples',
items: [
{ text: 'Markdown Examples', link: '/markdown-examples' },
{ text: 'Runtime API Examples', link: '/api-examples' }
]
}
],
socialLinks: [
{ icon: 'github', link: 'https://github.com/vuejs/vitepress' }
]
}
})
just happend .it was works.
Are you importing your config somewhere? If possible can you share your git repository or show what you're doing using https://vitepress.new?
Are you importing your config somewhere? If possible can you share your git repository or show what you're doing using https://vitepress.new?
like I said .even I change to default config, error still there. wired.
Describe the bug
Uncaught SyntaxError: The requested module '/nodemodules/.pnpm/vitepress@1.3.4@algolia+client-search@5.15.0_postcss@8.4.31_search-insights@2.17.3/node_modules/vitepress/dist/client/index.js?v=6d33447f' does not provide an export named 'defineConfig' (at config.mjs:1:10)
Reproduction
突然出现这个问题,export default defineConfig(default_config) 实际上提供了!
Expected behavior
正常
System Info
Additional context
No response
Validations