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

Error: Cannot find module 'consola' #69

Closed
huyanhai opened this issue Feb 9, 2022 · 5 comments
Closed

Error: Cannot find module 'consola' #69

huyanhai opened this issue Feb 9, 2022 · 5 comments

Comments

@huyanhai
Copy link

huyanhai commented Feb 9, 2022

error during build:
Error: Cannot find module 'consola'

@huyanhai huyanhai closed this as completed Feb 9, 2022
@lokewei
Copy link

lokewei commented Feb 9, 2022

+1

@xysaifeng
Copy link

同样发现了,"vite-plugin-style-import": "^2.0.0", import styleImport from 'vite-plugin-style-import'引入就报错

@Kassell
Copy link

Kassell commented Feb 15, 2022

"vite-plugin-style-import": "^2.0.0"
在vite.config.ts中引入
import {createStyleImportPlugin} from 'vite-plugin-style-import'
报同样错误
目前的解决方案是单独的安装一次consola依赖来解决问题

@Kassell
Copy link

Kassell commented Feb 15, 2022

同样发现了,"vite-plugin-style-import": "^2.0.0", import styleImport from 'vite-plugin-style-import'引入就报错

2.0.0 import 不是styleImport 而是 import {createStyleImportPlugin} from 'vite-plugin-style-import' 请看主分支

@sujianqingfeng
Copy link

consola报错是在没有在库的package.json里面引入对应的依赖,所以没有安装依赖,现在的解决方法就是在自己的项目显示的引入依赖,等后面修复后就可以去掉。
刚发现给我发了一个消息,我没有看到在哪里回复。
@Kassell

dhess added a commit to hackworthltd/tidy that referenced this issue Nov 24, 2022
Note that the `vite-plugin-style-import` plugin function changed in
2.0; see:

vbenjs/vite-plugin-style-import#69 (comment)
dhess added a commit to hackworthltd/tidy that referenced this issue Nov 25, 2022
Note that the `vite-plugin-style-import` plugin function changed in
2.0; see:

vbenjs/vite-plugin-style-import#69 (comment)
dhess added a commit to hackworthltd/tidy that referenced this issue Nov 25, 2022
Note that the `vite-plugin-style-import` plugin function changed in
2.0; see:

vbenjs/vite-plugin-style-import#69 (comment)
dhess added a commit to hackworthltd/tidy that referenced this issue Nov 27, 2022
Note that the `vite-plugin-style-import` plugin function changed in
2.0; see:

vbenjs/vite-plugin-style-import#69 (comment)
dhess added a commit to hackworthltd/tidy that referenced this issue Nov 28, 2022
Note that the `vite-plugin-style-import` plugin function changed in
2.0; see:

vbenjs/vite-plugin-style-import#69 (comment)
zxch3n pushed a commit to zxch3n/tidy that referenced this issue Dec 7, 2022
Note that the `vite-plugin-style-import` plugin function changed in
2.0; see:

vbenjs/vite-plugin-style-import#69 (comment)
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

5 participants