Closed WangJincheng4869 closed 1 year ago
Hello @WangJincheng4869. Please provide a minimal reproduction using a GitHub repository or v2.vuepress.vuejs.org/new. Issues marked with need reproduction
will be closed if they have no activity within 7 days.
Since the scss import error is handled by nod esm importer, double check whether you import any scss file at node side.
Bundler should recognize scss file and we are using scss files in default theme and theme-hope.
This issue may be related to https://github.com/vuepress/vuepress-next/issues/1283 if you are using npm.
Before further discussion, a minimal reproduction is required. This means you should remove any unrelated pages, config (especially vite plugins)
Since the scss import error is handled by nod esm importer, double check whether you import any scss file at node side.
Bundler should recognize scss file and we are using scss files in default theme and theme-hope.
This issue may be related to #1283 if you are using npm.
Before further discussion, a minimal reproduction is required. This means you should remove any unrelated pages, config (especially vite plugins)
我想问一下有没有类似的问题,我想参考一下。
目前的现象是如果我 使用 ElementPlusResolver
打包时就会报这个错,如果配置成 sass
那么就会报 不认识 SCSS,配置成 CSS 就会报 不认识 CSS
但是:我在正常的项目中是没有这个问题的,可以正常打包,只有 vuepress 无法打包(我是将 vuepress 集成在项目中的)
另外:我在 vuepress 中自己写的组件也是没有问题的。这就很难判断 到底是 vuepress 的问题,还是 ElementPlusResolver 插件的问题....
已解决,忽略SSR即可
noExternal: ['vue-i18n', 'element-plus', '@vueuse/core']
vuepress2 有 noExternal 这个 api 吗,为啥我没找到 😂
vuepress2 有 noExternal 这个 api 吗,为啥我没找到 😂
Description
只有打包的时候会报以下错误,但可以正常运行,就是很玄学...
Reproduction
vuepress bulid Unknown file extension scss.zip
Used Package Manager
pnpm
System Info