Comments (6)
感觉是不是打包有点问题?但是我还没找到原因
我从 npm 下载的包不行,但是我直接fork这个插件到项目里却可以
from vite-plugin-markdown-preview.
而且在插件仓库的demo就能复现,vitepress demo里把 vite-plugin-markdown-preview 替换成 npm 下载的,就打包报错了
from vite-plugin-markdown-preview.
defineConfig({
vite: {
plugins: [MarkdownPreview()],
ssr: {
noExternal: ['vite-plugin-markdown-preview'],
},
}
})
这里是编译通过 https://screen-ui-docs.vercel.app/components/header
from vite-plugin-markdown-preview.
你好,请问解决了吗?1.0.4碰到同样的问题
from vite-plugin-markdown-preview.
你好,请问解决了吗?1.0.4碰到同样的问题
加一下配置可以的
defineConfig({
vite: {
plugins: [MarkdownPreview()],
ssr: {
noExternal: ['vite-plugin-markdown-preview'],
},
}
})
from vite-plugin-markdown-preview.
1.1.0 fixed it #42
from vite-plugin-markdown-preview.
Related Issues (20)
- 提示highlight版本问题,以及高亮颜色有点问题
- .md 的demo中,如果带有 css就会报错。 HOT 1
- 为什么我的表格渲染出来没有边框,是否还需要配置什么 HOT 2
- 打包发布需要额外配置什么吗,为通过npm run build打包后,无法跳转到md页面,报错Error: Unknown variable dynamic import: ../docs/form/index.md HOT 1
- Error: Cannot find module 'debug'
- 加载md文件报错 HOT 2
- 如何给a标签添加 target="_blank" 属性??
- 是否可以升级一下@vitejs/plugin-vue至2.x HOT 2
- Cannot find module 'E:\Code\VS Code\blog\vite-blog\node_modules\vite-plugin-md-preview\dist\index.mjs HOT 1
- 版本有缺陷 HOT 2
- 组件在windows上不好使 HOT 2
- 在windows上有路径问题 HOT 2
- 使用"vite-plugin-md": "^0.20.2"vue组件并没有被解析出来 HOT 1
- 运行playground\vite代码,解析preview代码块失败 HOT 1
- still not work in windows HOT 1
- TypeError: Failed to fetch dynamically imported module HOT 1
- vite.config.ts导入MarkdownPreview报错问题 HOT 1
- wrapperComponent无法取得frontmatter
- 代码块样式丢失
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vite-plugin-markdown-preview.