VitePress初始运行报错Package subpath ‘./dist/vue.runtime.esm-bundler.js‘ is not defined by “exports“ in..
VitePress(0.20.0)按照VitePress文档初始化项目后,运行docs:dev脚本报错,错误如下Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath ‘./dist/vue.runtime.esm-bundler.js’ is not defined by “exports” in F:\work\workPlace\temp
·
VitePress(0.20.0)按照VitePress文档初始化项目后,运行docs:dev
脚本报错,错误如下
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath ‘./dist/vue.runtime.esm-bundler.js’ is not defined by “exports” in F:\work\workPlace\temporary\test\node_modules\vue\package.json
原因
Node版本太低,我当时Node版本为12,运行就报上面错误;将Node版本升级到v16.13.0之后就正常运行了
解决方法
升级Node版本
更多推荐
已为社区贡献8条内容
所有评论(0)