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

Error: Cannot find module 'consola' when using pnpm #95

Open
kortin99 opened this issue Sep 14, 2022 · 7 comments
Open

Error: Cannot find module 'consola' when using pnpm #95

kortin99 opened this issue Sep 14, 2022 · 7 comments

Comments

@kortin99
Copy link

kortin99 commented Sep 14, 2022

image

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

@Jack-Kunlun
Copy link

解决了吗?

@fuxiang123
Copy link

解决了吗?

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

@zengshenggit
Copy link

pnpm add consola -D

@haiting
Copy link

haiting commented Dec 6, 2022

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

@shiningnight
Copy link

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 jd-opensource/nutui#1755 wrote.

@jiangHongWu
Copy link

jiangHongWu commented Feb 24, 2023

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

@olegKusov
Copy link

olegKusov commented Aug 10, 2023

same issue with yarn

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

8 participants