-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ssr 开启时,引入 markdown 文件,编译报错 #6634
Comments
server 端执行未使用 webpack 链路,因此不支持解析 md 文件,后续我们增加下对应的处理的方式,如果是 raw-loader 的情况下可以直接使用 |
大佬,我还是不太明白,方便贴一段代码不 @ClarkXia |
类似 |
感谢~ |
ssg: true 或者 ssr: true 时,npm run build 会报如下错误。 @ClarkXia 方便帮忙看看不 |
可以提供一个复现的 demo 吗 |
Describe the bug
ssr: false 时,引入 test.md 文件进行页面渲染时,一切正常。
ssr: true 时,没有引用 test.md 文件进行页面渲染时,一切正常。
ssr: true 时,引用 test.md 文件进行页面渲染时,报如下错误。
Expected behavior
希望成功编译正常渲染页面
Actual behavior
No response
Version of ice.js
3.3.5
Content of build.json or ice.config.mts
Additional context
No response
The text was updated successfully, but these errors were encountered: