-
Notifications
You must be signed in to change notification settings - Fork 922
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
[Bug report] 当使用 ElementPlusResolver
动态引入 elementPlus 打包[pnpm]时报错不认识 css / scss
#1318
Comments
ElementPlusResolver
动态引入 elementPlus中报错不认识 cssElementPlusResolver
动态引入 elementPlus 打包时报错不认识 css
Hello @WangJincheng4869. Please provide a minimal reproduction using a GitHub repository or v2.vuepress.vuejs.org/new. Issues marked with |
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) |
我想问一下有没有类似的问题,我想参考一下。 目前的现象是如果我 使用 但是:我在正常的项目中是没有这个问题的,可以正常打包,只有 vuepress 无法打包(我是将 vuepress 集成在项目中的) 另外:我在 vuepress 中自己写的组件也是没有问题的。这就很难判断 到底是 vuepress 的问题,还是 ElementPlusResolver 插件的问题.... |
ElementPlusResolver
动态引入 elementPlus 打包时报错不认识 cssElementPlusResolver
动态引入 elementPlus 打包[pnpm]时报错不认识 css
ElementPlusResolver
动态引入 elementPlus 打包[pnpm]时报错不认识 cssElementPlusResolver
动态引入 elementPlus 打包[pnpm]时报错不认识 css / scss
已解决,忽略SSR即可 noExternal: ['vue-i18n', 'element-plus', '@vueuse/core'] |
vuepress2 有 noExternal 这个 api 吗,为啥我没找到 😂 |
Description
只有打包的时候会报以下错误,但可以正常运行,就是很玄学...
Reproduction
vuepress bulid Unknown file extension scss.zip
Used Package Manager
pnpm
System Info
The text was updated successfully, but these errors were encountered: