gloriasoft / veaury

Use React in Vue3 and Vue3 in React, And as perfect as possible!
MIT License
1.27k stars 81 forks source link

启动项目警告 Vite 的 CJS Node API 构建已经被废弃 #127

Closed yuyuko233 closed 3 months ago

yuyuko233 commented 3 months ago

启动项目警告 Vite 的 CJS Node API 构建已经被废弃

希望能加一份 esmveaury/vite

Trace: The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
    at warnCjsUsage (Project\node_modules\.pnpm\vite@5.2.11_@types+node@20.12.12\node_modules\vite\index.cjs:33:3)
    at Object.<anonymous> (Project\node_modules\.pnpm\vite@5.2.11_@types+node@20.12.12\node_modules\vite\index.cjs:3:1)
    at Module._compile (node:internal/modules/cjs/loader:1358:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
    at Module.load (node:internal/modules/cjs/loader:1208:32)
    at Module._load (node:internal/modules/cjs/loader:1024:12)
    at Module.require (node:internal/modules/cjs/loader:1233:19)
    at require (node:internal/modules/helpers:179:18)
    at Object.<anonymous> (Project\node_modules\.pnpm\@vitejs+plugin-vue@5.0.4_vite@5.2.11_@types+node@20.12.12__vue@3.4.27_typescript@5.4.5_\node_modules\@vitejs\plugin-vue\dist\index.cjs:6:14)
    at Module._compile (node:internal/modules/cjs/loader:1358:14)