报错信息:
[Failed to load PostCSS config: Failed to load PostCSS config (searchPath: D:/project/vite-vue-project): [Error] Must use import to load ES Module: D:\project\vite-vue-project\postcss.config.ts
require() of ES modules is not supported.
require() of D:\project\vite-vue-project\postcss.config.ts from D:\project\vite-vue-project\node_modules\.store\vite@5.3.3\node_modules\vite\dist\node\chunks\dep-CzJTQ5q7.js is an ES module file as it is a .ts file whose nearest parent package.json contains "type": "module" which defines all .ts files in that package scope as ES modules.
Instead change the requiring code to use import(), or remove "type": "module" from D:\project\vite-vue-project\package.json.Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: D:\project\vite-vue-project\postcss.config.ts
require() of ES modules is not supported.
require() of D:\project\vite-vue-project\postcss.config.ts