1.进入网站下载uniadmin框架:https://ext.dcloud.net.cn/plugin?id=3268
2.manifest.json中修改vue版本 选择 3
3.运行到谷歌浏览器
4.在打开的页面新增audio标签
5.刷新页面 报错
- 发布:2022-03-31 17:48
- 更新:2022-03-31 20:35
- 阅读:935
产品分类: uniapp/H5
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win11
HBuilderX类型: 正式
HBuilderX版本号: 3.3.13
浏览器平台: Chrome
浏览器版本: 99.0.4844.84(正式版本)
项目创建方式: HBuilderX
操作步骤:
预期结果:
页面显示正常
页面显示正常
实际结果:
页面报错:提示
[plugin:vite:import-analysis] Cannot find module '@dcloudio/uni-components/style/audio.css'
Require stack:
- D:\anzhuang\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\uni-cli-shared\dist\resolve.js
- D:\anzhuang\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\uni-cli-shared\dist\json\mp\jsonFile.js
- D:\anzhuang\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\uni-cli-shared\dist\mp\usingComponents.js
- D:\anzhuang\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\uni-cli-shared\dist\mp\index.js
- D:\anzhuang\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\uni-cli-shared\dist\index.js
- D:\anzhuang\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\vite-plugin-uni\dist\cli\utils.js
- D:\anzhuang\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\vite-plugin-uni\dist\cli\index.js
- D:\anzhuang\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\vite-plugin-uni\bin\uni.js
页面报错:提示
[plugin:vite:import-analysis] Cannot find module '@dcloudio/uni-components/style/audio.css'
Require stack:
- D:\anzhuang\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\uni-cli-shared\dist\resolve.js
- D:\anzhuang\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\uni-cli-shared\dist\json\mp\jsonFile.js
- D:\anzhuang\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\uni-cli-shared\dist\mp\usingComponents.js
- D:\anzhuang\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\uni-cli-shared\dist\mp\index.js
- D:\anzhuang\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\uni-cli-shared\dist\index.js
- D:\anzhuang\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\vite-plugin-uni\dist\cli\utils.js
- D:\anzhuang\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\vite-plugin-uni\dist\cli\index.js
- D:\anzhuang\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\vite-plugin-uni\bin\uni.js
bug描述:
uniadmin使用vue3版本编译使用audio标签报错
[plugin:vite:import-analysis] Cannot find module '@dcloudio/uni-components/style/audio.css'
Require stack:
- D:\anzhuang\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\uni-cli-shared\dist\resolve.js
- D:\anzhuang\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\uni-cli-shared\dist\json\mp\jsonFile.js
- D:\anzhuang\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\uni-cli-shared\dist\mp\usingComponents.js
- D:\anzhuang\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\uni-cli-shared\dist\mp\index.js
- D:\anzhuang\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\uni-cli-shared\dist\index.js
- D:\anzhuang\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\vite-plugin-uni\dist\cli\utils.js
- D:\anzhuang\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\vite-plugin-uni\dist\cli\index.js
- D:\anzhuang\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\vite-plugin-uni\bin\uni.js