Skip to content

Example provided in theme documentation does not work #442

Closed
@Jaimeloeuf

Description

@Jaimeloeuf

Hi there,

The example in the documentation for customizing the theme does not work. It fails as the file/package cannot be found. This is the specific line that I am referring to, but I believe that the other lines that use this same thing will also fail.

The specific import that fails

import DefaultTheme from 'vitepress/theme'

I found an alternative import that works by looking into the downloaded node_module folder directly

import DefaultTheme from "vitepress/dist/client/theme-default";

Im not sure if this is the intended use or? If this is an actual issue, I can help with making a PR to update the docs, else if it is something that needs to be fixed with the deployment process so that the DefaultTheme can be exported from vitepress/theme then it would probably need help from someone else familiar with the process.

Thanks alot for your time!

Activity

locked as resolved and limited conversation to collaborators on Jan 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @Jaimeloeuf

        Issue actions

          Example provided in theme documentation does not work · Issue #442 · vuejs/vitepress