TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of URL. #881
Unanswered
zbxingke1993
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
使用vite自带的vue模板搭建项目,按照windicss官网整合,运行npm run dev 报如下错误:
`
failed to load config from D:\code\vue3\vue3-shop\vite.config.ts
error when starting dev server:
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of URL. Received undefined
at new NodeError (node:internal/errors:393:5)
at fileURLToPath (node:internal/url:1485:11)
at file:///D:/code/vue3/vue3-shop/node_modules/vite-plugin-windicss/dist/index.mjs:119:71
at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:530:24)
at async loadConfigFromBundledFile (file:///D:/code/vue3/vue3-shop/node_modules/vite/dist/node/chunks/dep-2285ba4f.js:63052:21)
at async loadConfigFromFile (file:///D:/code/vue3/vue3-shop/node_modules/vite/dist/node/chunks/dep-2285ba4f.js:62937:28)
at async resolveConfig (file:///D:/code/vue3/vue3-shop/node_modules/vite/dist/node/chunks/dep-2285ba4f.js:62558:28)
at async createServer (file:///D:/code/vue3/vue3-shop/node_modules/vite/dist/node/chunks/dep-2285ba4f.js:61878:20)
`
Beta Was this translation helpful? Give feedback.
All reactions