vite-plugin-style-import icon indicating copy to clipboard operation
vite-plugin-style-import copied to clipboard

Error: Cannot find module 'consola' when using pnpm

Open kortin99 opened this issue 3 years ago • 7 comments

image

项目中存在幽灵依赖consola,使用pnpm报错。 需要在package.json中直接声明依赖。

kortin99 avatar Sep 14 '22 06:09 kortin99

解决了吗?

Jack-Kunlun avatar Sep 26 '22 05:09 Jack-Kunlun

解决了吗?

只能先暂时在package.json里面显式声明。希望作者尽快解决

fuxiang123 avatar Oct 03 '22 10:10 fuxiang123

pnpm add consola -D

zengshenggit avatar Oct 18 '22 10:10 zengshenggit

may be it's better to use vite-plugin-imp vite-plugin-imp is in awesome-vite

haiting avatar Dec 06 '22 06:12 haiting

using npm, same problem and this is just a typo I highly suspect inspected the dist package.json, saw "console" is a dep, instead of "consola", same as https://github.com/jdf2e/nutui/issues/1755 wrote.

shiningnight avatar Jan 19 '23 10:01 shiningnight

Cannot find package 'consola'
I have the same problem, hopefully this author can add "consola" to dependencies The current solution requires that we manually install consola

yarn add consola -D // or npm install consola -D

jiangHongWu avatar Feb 24 '23 03:02 jiangHongWu

same issue with yarn

olegKusov avatar Aug 10 '23 22:08 olegKusov