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

Cannot find module 'consola' #1754

Open
Sumuyzzz opened this issue Jun 11, 2022 · 3 comments
Open

Cannot find module 'consola' #1754

Sumuyzzz opened this issue Jun 11, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@Sumuyzzz
Copy link

可复现的链接:

https://stackblitz.com/edit/vitejs-vite-qelujq?file=vite.config.ts&terminal=dev

问题描述与截图:

failed to load config from Project\vite.config.ts
error when starting dev server:
Error: Cannot find module 'consola'
Require stack:
- Project\node_modules\.pnpm\r[email protected][email protected]\node_modules\vite-plugin-style-import\dist\index.cjs
- Project\vite.config.ts
- Project\node_modules\.pnpm\r[email protected][email protected]\node_modules\vite\dist\node\chunks\dep-97cb3622.js
- Project\node_modules\.pnpm\r[email protected][email protected]\node_modules\vite\dist\node\cli.js
- Project\node_modules\.pnpm\r[email protected][email protected]\node_modules\vite\bin\vite.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (E:\GithubProject\Visualize\demo\data_vue\node_modules\.pnpm\r[email protected][email protected]\node_modules\vite-plugin-style-import\dist\index.cjs:10:17)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
 ELIFECYCLE  Command failed with exit code 1. 

期望的结果:

能运行项目

操作系统:

win10

浏览器版本:

102.0.5005.63

vue 版本:

3.2.25

vxe-table 版本:

4.2.7-beta.0

@Sumuyzzz Sumuyzzz added the bug Something isn't working label Jun 11, 2022
@oseaweed
Copy link

oseaweed commented Jul 8, 2022

可复现的链接:

https://stackblitz.com/edit/vitejs-vite-qelujq?file=vite.config.ts&terminal=dev

问题描述与截图:

failed to load config from Project\vite.config.ts
error when starting dev server:
Error: Cannot find module 'consola'
Require stack:
- Project\node_modules\.pnpm\r[email protected][email protected]\node_modules\vite-plugin-style-import\dist\index.cjs
- Project\vite.config.ts
- Project\node_modules\.pnpm\r[email protected][email protected]\node_modules\vite\dist\node\chunks\dep-97cb3622.js
- Project\node_modules\.pnpm\r[email protected][email protected]\node_modules\vite\dist\node\cli.js
- Project\node_modules\.pnpm\r[email protected][email protected]\node_modules\vite\bin\vite.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (E:\GithubProject\Visualize\demo\data_vue\node_modules\.pnpm\r[email protected][email protected]\node_modules\vite-plugin-style-import\dist\index.cjs:10:17)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
 ELIFECYCLE  Command failed with exit code 1. 

期望的结果:

能运行项目

操作系统:

win10

浏览器版本:

102.0.5005.63

vue 版本:

3.2.25

vxe-table 版本:

4.2.7-beta.0

请问解决了吗我得也是

@zbs-ha
Copy link

zbs-ha commented Jul 30, 2022

这里有线索

@oseaweed
Copy link

oseaweed commented Aug 4, 2022

这里有线索

椰丝 解决了 版本升级下就好啦

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants