cli创建项目, npm run dev:h5 运行项目;
在node 控制台可看到以上信息输出
- 发布:2022-05-17 23:35
- 更新:2022-09-26 02:38
- 阅读:2965
产品分类: uniapp/H5
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win11
浏览器平台: Chrome
浏览器版本: EDGE 版本 101.0.1210.47 (正式版本) (64 位)
项目创建方式: CLI
CLI版本号: 3.4.9.20220508-alpha
操作步骤:
预期结果:
无任何额外信息打印
无任何额外信息打印
实际结果:
控制台打印
(node:6772) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at E:\Programming\cme-p\app\node_modules\vuex\package.json.
Update this package.json to use a subpath pattern like "./*".
(Use node --trace-deprecation ...
to show where the warning was created)
Forced re-optimization of dependencies
控制台打印
(node:6772) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at E:\Programming\cme-p\app\node_modules\vuex\package.json.
Update this package.json to use a subpath pattern like "./*".
(Use node --trace-deprecation ...
to show where the warning was created)
Forced re-optimization of dependencies
bug描述:
在 node控制台 有几行日志输出.怀疑时vuex配置文件错误导致.
> uni
请注意运行模式下,因日志输出、sourcemap 以及未压缩源码等原因,性能和包体积,均不及发行模式。
正在编译中...
(node:6772) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at E:\Programming\cme-p\app\node_modules\vuex\package.json.
Update this package.json to use a subpath pattern like "./*".
(Use `node --trace-deprecation ...` to show where the warning was created)
Forced re-optimization of dependencies
vite v2.9.9 dev server running at:
> Network:
3 个回复
只有翅膀 (作者) - 80后IT老男人
无需上传项目。复现步骤如下:
完成以上步骤后,即出现下面信息
PS E:\Programming> npx degit dcloudio/uni-preset-vue#vite-ts mtest
added 312 packages, and audited 313 packages in 50s
29 packages are looking for funding
run
npm fund
for detailsfound 0 vulnerabilities
PS E:\Programming\mtest> npm run dev:h5
请注意运行模式下,因日志输出、sourcemap 以及未压缩源码等原因,性能和包体积,均不及发行模式。
正在编译中...
(node:3016) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at E:\Programming\mtest\node_modules\vuex\package.json.
Update this package.json to use a subpath pattern like "./*".
(Use
node --trace-deprecation ...
to show where the warning was created)vite v2.9.9 dev server running at:
ready in 10580ms.
BoredApe - 有问题就会有答案。
请上传能重现问题的测试工程
只有翅膀 (作者)
无需上传项目,新建项目即复现
2022-05-24 10:15
7***@qq.com - 开发账号
同问,最后怎么处理