antfu / vite-plugin-md

Markdown with Vue for Vite
MIT License
605 stars 89 forks source link

example does not work #109

Closed flingyp closed 2 years ago

flingyp commented 2 years ago

Describe the bug

use pnpm to install all dependencies, but execute pnpm example:dev to report an error

Reproduction

TypeError: (0 , import_vite_plugin_md.meta) is not a function

System Info

System:
    OS: Windows 10 10.0.22000
    CPU: (8) x64 Intel(R) Core(TM) i5-8300H CPU @ 2.30GHz
    Memory: 2.30 GB / 7.88 GB
  Binaries:
    Node: 16.13.0 - G:\ItSoftware\nodejs\node.EXE
    Yarn: 1.22.17 - F:\globalNpm\node_gobal\yarn.CMD
    npm: 8.1.0 - G:\ItSoftware\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.22000.120.0), Chromium (103.0.1264.62)

Used Package Manager

pnpm

Validations

yankeeinlondon commented 2 years ago

which version of the plugin did you use? i've been transitioning to Vite 3 and externalizing some of the "builder apis" and the error you're getting is due to the fact that the builder API's are not being exported in a few of the 0.19.x builds.

I'd expect the final 0.19.x to be out in the next hour or two and be fully working.

flingyp commented 2 years ago

I use the latest code of the repository. The version of vite is ^3.0.2 but still not work.

yankeeinlondon commented 2 years ago

the latest release -- 0.19.10 -- works with Vite 3; the example app also works and shows how to manually import the "builder apis" (code, meta, link) if you're using them.