Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

TypeError: (0 , import_vite_plugin_style_import.default) is not a function #77

Open
tomoat opened this issue Mar 1, 2022 · 8 comments

Comments

@tomoat
Copy link

tomoat commented Mar 1, 2022

[email protected] 升级 2.0后,首先出现了consola模块未安装的问题,安装consola模块后,就出现了这个问题,没有任何升级迁移,目前只能回退到1.4.1版本

TypeError: (0 , import_vite_plugin_style_import.default) is not a function

关联issue #66 #74 #69

@tomoat
Copy link
Author

tomoat commented Mar 1, 2022

import {createStyleImportPlugin} from 'vite-plugin-style-import' 错误信息变为 TypeError: (0 , import_vite_plugin_style_import.createStyleImportPlugin) is not a function

@zysgithub
Copy link

一样的问题 目前只能回退到1.4.1版本

@linlwss
Copy link

linlwss commented May 25, 2022

一样的问题

@linlwss
Copy link

linlwss commented May 25, 2022

请问楼主解决了吗

@devie2020
Copy link

一样的问题 目前只能回退到1.4.1版本

1.4.1的版本断点正常么

@chenzuo
Copy link

chenzuo commented Jun 23, 2022

TypeError: (0 , import_vite_plugin_html.default) is not a function

@nina992
Copy link

nina992 commented Aug 9, 2022

use
import * as styleImport from "vite-plugin-style-import";
then
styleImport.createStyleImportPlugin({
libs: [
{
libraryName: "antd",
esModule: true,
resolveStyle: name => {
return antd/es/${name}/style/index;
},
},
],
}),

@chesongsong
Copy link

同样碰到这个问题

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants