You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
前端进行install后,直接通过 'npm run dev' 命令进行启动运行。但发现报错。(本人使用的node版本是:v14.17.0)
`
failed to load config from E:\Study\WeBlog\weblog-vue3\vite.config.js
error when starting dev server:
Error: Cannot find module 'node:url'
Require stack:
E:\Study\WeBlog\weblog-vue3\vite.config.js
E:\Study\WeBlog\weblog-vue3\node_modules\vite\dist\node\chunks\dep-8609dc5d.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
at Function.Module._load (internal/modules/cjs/loader.js:730:27)
at Module.require (internal/modules/cjs/loader.js:957:19)
`
前端进行install后,直接通过 'npm run dev' 命令进行启动运行。但发现报错。(本人使用的node版本是:v14.17.0)
`
failed to load config from E:\Study\WeBlog\weblog-vue3\vite.config.js
error when starting dev server:
Error: Cannot find module 'node:url'
Require stack:
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
at Function.Module._load (internal/modules/cjs/loader.js:730:27)
at Module.require (internal/modules/cjs/loader.js:957:19)
`
即时根据网上搜索的内容将import 中内容改成以下,则寻找不到的模块变成是path
import { fileURLToPath, URL } from 'url'
`
Error: Cannot find module 'node:path'
Require stack:
`
想请教一下楼主这个问题您有遇到过么?
The text was updated successfully, but these errors were encountered: