antfu / vite-plugin-md

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

Wrapper Markdown component was not rendered on build #124

Open ansidev opened 1 year ago

ansidev commented 1 year ago

Describe the bug

I tried to build my blog after upgrading Vite from v2 using pnpm run build but it failed.

Dependencies:

Package Version
vite ^4.0.0
vite-plugin-md ^0.22.0
@vitejs/plugin-vue (source) ^2.3.4 -> ^4.0.0

PR: https://github.com/ansidev/blog/pull/159 Broken URL: https://deploy-preview-159--ansidev.netlify.app/posts/2022-12-12-how-to-remove-screenshot-border-option-in-mac-os

Reproduction

https://github.com/ansidev/blog/tree/renovate/vitejs-plugin-vue-4.x

System Info

System:
    OS: macOS 12.6.1
    CPU: (8) x64 Intel(R) Core(TM) i7-6920HQ CPU @ 2.90GHz
    Memory: 43.55 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.18.1 - ~/.nvm/versions/node/v16.18.1/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 9.2.0 - ~/Library/pnpm/npm
  Browsers:
    Brave Browser: 108.1.46.138
    Chrome: 108.0.5359.98
    Edge: 108.0.1462.46
    Firefox: 107.0.1
    Firefox Developer Edition: 108.0
    Safari: 16.1

Used Package Manager

pnpm

Validations

ansidev commented 1 year ago

Update: It seems that this package is not compatible with @vitejs/plugin-vue v4

PR: https://github.com/ansidev/blog/pull/159 Error reproduction URL: https://deploy-preview-159--ansidev.netlify.app/posts/2022-12-12-how-to-remove-screenshot-border-option-in-mac-os

yankeeinlondon commented 1 year ago

@ansidev can you try again with Release 0.22.1. It may still exist as a bug but I think it would be better for you to test. Please close if it is fixed.

ansidev commented 1 year ago

@ansidev can you try again with Release 0.22.1. It may still exist as a bug but I think it would be better for you to test. Please close if it is fixed.

I have updated the PR, the bug is still there.