vite-plugin-style-import
vite-plugin-style-import copied to clipboard
Error: Cannot find module 'consola' when using pnpm
项目中存在幽灵依赖consola,使用pnpm报错。
需要在package.json中直接声明依赖。
解决了吗?
解决了吗?
只能先暂时在package.json里面显式声明。希望作者尽快解决
pnpm add consola -D
may be it's better to use vite-plugin-imp vite-plugin-imp is in awesome-vite
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.
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
same issue with yarn