Code Monkey home page Code Monkey logo

Comments (6)

liting-yes avatar liting-yes commented on August 16, 2024

感觉是不是打包有点问题?但是我还没找到原因
我从 npm 下载的包不行,但是我直接fork这个插件到项目里却可以

from vite-plugin-markdown-preview.

liting-yes avatar liting-yes commented on August 16, 2024

而且在插件仓库的demo就能复现,vitepress demo里把 vite-plugin-markdown-preview 替换成 npm 下载的,就打包报错了

from vite-plugin-markdown-preview.

tomieric avatar tomieric commented on August 16, 2024

参考vuejs/vitepress#1465

defineConfig({
   vite: {
        plugins: [MarkdownPreview()],
        ssr: {
             noExternal: ['vite-plugin-markdown-preview'],
        },
   }
})

这里是编译通过 https://screen-ui-docs.vercel.app/components/header

from vite-plugin-markdown-preview.

ashen9 avatar ashen9 commented on August 16, 2024

你好,请问解决了吗?1.0.4碰到同样的问题

from vite-plugin-markdown-preview.

tomieric avatar tomieric commented on August 16, 2024

你好,请问解决了吗?1.0.4碰到同样的问题

加一下配置可以的

defineConfig({
   vite: {
        plugins: [MarkdownPreview()],
        ssr: {
             noExternal: ['vite-plugin-markdown-preview'],
        },
   }
})

from vite-plugin-markdown-preview.

JasKang avatar JasKang commented on August 16, 2024

1.1.0 fixed it #42

from vite-plugin-markdown-preview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.