Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './parseAst' is not defined by "exports" in E:\hello-arco-pro\Frontend\nodemodules.pnpm\vite@5.0.10@types node@20.5.1_less@4.2.0\node_modules\rollup\package.json imported from E:\hello-arco-pro\Frontend\nodemodules.pnpm\vite@5.0.10@types node@20.5.1_less@4.2.0\node_modules\vite\dist\node\cli.js
at new NodeError (node:internal/errors:406:5)
at exportsNotFound (node:internal/modules/esm/resolve:268:10)
at packageExportsResolve (node:internal/modules/esm/resolve:598:9)
at packageResolve (node:internal/modules/esm/resolve:772:14)
at moduleResolve (node:internal/modules/esm/resolve:838:20)
at defaultResolve (node:internal/modules/esm/resolve:1043:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:383:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:352:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:228:38)
at ModuleWrap. (node:internal/modules/esm/module_job:85:39) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
Node.js v20.9.0
ELIFECYCLE Command failed with exit code 1.
基本信息
预期结果
希望您能够支持vite5.0.10
复现步骤
报错内容
node:internal/errors:497 ErrorCaptureStackTrace(err); ^
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './parseAst' is not defined by "exports" in E:\hello-arco-pro\Frontend\nodemodules.pnpm\vite@5.0.10@types node@20.5.1_less@4.2.0\node_modules\rollup\package.json imported from E:\hello-arco-pro\Frontend\nodemodules.pnpm\vite@5.0.10@types node@20.5.1_less@4.2.0\node_modules\vite\dist\node\cli.js at new NodeError (node:internal/errors:406:5) at exportsNotFound (node:internal/modules/esm/resolve:268:10) at packageExportsResolve (node:internal/modules/esm/resolve:598:9) at packageResolve (node:internal/modules/esm/resolve:772:14) at moduleResolve (node:internal/modules/esm/resolve:838:20) at defaultResolve (node:internal/modules/esm/resolve:1043:11) at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:383:12) at ModuleLoader.resolve (node:internal/modules/esm/loader:352:25) at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:228:38) at ModuleWrap. (node:internal/modules/esm/module_job:85:39) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
Node.js v20.9.0 ELIFECYCLE Command failed with exit code 1.
更新到vite5.0.10以后就没办法正常dev,报错为ERR_PACKAGE_PATH_NOT_EXPORTED