Skip to content
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

TS 错误:ts(2349) #3

Open
shadowdai-netizen opened this issue Oct 28, 2022 · 1 comment
Open

TS 错误:ts(2349) #3

shadowdai-netizen opened this issue Oct 28, 2022 · 1 comment

Comments

@shadowdai-netizen
Copy link

plugins: [react(), viteCssModule()] ,提示此表达式不可调用。

@MrZhang3512
Copy link

// vite-plugin-style-modules导出的函数没有调用签名,需要在当前文件中写上这个
declare module "vite-plugin-style-modules"
{ export default function viteCssModule(path?: RegExp) }

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

No branches or pull requests

2 participants