项目从vue2 升级到vue3报错,请问一下这是什么问题呢?
D:\HBuilderX.3.3.10.20220124.full\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\uni-cli-shared\dist\json\app\manifest\nvue.js:34
14:35:37.647 if (manifestJson['app-plus']?.nvue?.['flex-direction']) {
14:35:37.649 ^
14:35:37.649 SyntaxError: Unexpected token '.'
14:35:37.651 at wrapSafe (internal/modules/cjs/loader.js:915:16)
14:35:37.653 at Module._compile (internal/modules/cjs/loader.js:963:27)
14:35:37.655 at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
14:35:37.657 at Module.load (internal/modules/cjs/loader.js:863:32)
14:35:37.657 at Function.Module._load (internal/modules/cjs/loader.js:708:14)
14:35:37.659 at Module.require (internal/modules/cjs/loader.js:887:19)
14:35:37.661 at require (internal/modules/cjs/helpers.js:74:18)
14:35:37.663 at Object.<anonymous> (D:\HBuilderX.3.3.10.20220124.full\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\uni-cli-shared\dist\mp\nvue.js:9:16)
14:35:37.668 at Module._compile (internal/modules/cjs/loader.js:999:30)
14:35:37.669 at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)**
2***@qq.com (作者)
HbuilderX的版本是3.3.11.20220209,新建了一个干净的目录,啥也没有,manifest.json是vue2的时候运行可以,vue版本选择3的时候就不行报错
2023-04-10 16:42
DCloud_UNI_WZF
回复 2***@qq.com: 安装一个最新版本HBuilderX 试下呢
2023-04-10 16:42
2***@qq.com (作者)
回复 DCloud_UNI_WZF: 好的,我试一下
2023-04-10 16:44
2***@qq.com (作者)
回复 DCloud_UNI_WZF: 更新到最新版本了吗,还是报错,failed to load config from D:\HBuilderX.3.3.10.20220124.full\HBuilderX\plugins\uniapp-cli-vite\vite.config.js
17:13:10.070 error when starting dev server:
2023-04-10 17:13
DCloud_UNI_WZF
回复 2***@qq.com: 看你报错信息的目录这不是3.3.10 吗,最新版本已经到了 3.7.12 了
2023-04-10 17:32
2***@qq.com (作者)
回复 DCloud_UNI_WZF: 好了,我全部写在重新安装的可以了,谢谢啦
2023-04-11 11:25
菜鸟驿站111
回复 DCloud_UNI_WZF: 我的Hbuildx是3.98,但是报错HbuildX是3.8.7
2024-01-30 17:38
2***@qq.com
回复 DCloud_UNI_WZF:
还是报错啊 运行不起来 网上下的demo
\uniapp\node_modules\@dcloudio\uni-cli-shared\dist\json\app\manifest\nvue.js:35
13:25:40.910 if (appPlusJson?.nvue?.['flex-direction'] &&
13:25:40.911 ^
13:25:40.913 SyntaxError: Unexpected token '.'
13:25:40.914 at wrapSafe (internal/modules/cjs/loader.js:915:16)
13:25:40.915 at Module._compile (internal/modules/cjs/loader.js:963:27)
13:25:40.915 at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
13:25:40.917 at Module.load (internal/modules/cjs/loader.js:863:32)
13:25:40.918 at Function.Module._load (internal/modules/cjs/loader.js:708:14)
13:25:40.920 at Module.require (internal/modules/cjs/loader.js:887:19)
13:25:40.921 at require (internal/modules/cjs/helpers.js:74:18)
13:25:40.922 at Object.<anonymous> (D:\轩亚亿科\likeadmin_python-master\uniapp\node_modules\@dcloudio\uni-cli-shared\dist\mp\nvue.js:9:16)
13:25:40.923 at Module._compile (internal/modules/cjs/loader.js:999:30)
13:25:40.924 at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
2024-02-29 13:42