Skip to content

[TypeScript] Module '"vite-plugin-md"' has no exported member 'code'. #141

@apappas1129

Description

@apappas1129

Describe the bug

I cannot use the code builder as documented:

import md, { code } from "vite-plugin-md";

TS error: Module '"vite-plugin-md"' has no exported member 'code'. Did you mean to use 'import code from "vite-plugin-md"' instead?ts(2614)

package.json

 "vite-plugin-md": "^0.21.5",
 "vite": "^4.0.3",
 "vite-plugin-ssr": "^0.4.131",
 "vue": "^3.2.33"

Reproduction

https://github.com/yankeeinlondon/code-builder#using-this-builder

System Info

N/A

Used Package Manager

npm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions