uniapp项目安装pinia2.1版本后,编译项目报错“hasInjectionContext“ is not exported by “node_Modules/vue-demi/lib/inde
2024-03-17uniapp项目安装pinia2.1版本后,编译项目报错"hasInjectionContext" is not exported by "node_Modules/vue-demi/lib/index.mjs", imported by "node_Modules/pinia/dist/pinia.mjs".将pinia的版本改成2.0.36,重新编译,就不报错了。_hasinjectioncontext" is not exported by "node_Modules/vue-demi/lib/index.mj
VUE引入DataV报错记录
2024-03-17类型“typeof import("g:/WSwork/vue-project/large-screen/large-screen/node_Modules/@dataview/datav-vue3/es/index")”的参数不能赋给类型“Plugin_the package may have incorrect main/Module/exports specified in its package.
TypeError: this.getOptions is not a function 的解决
2024-03-17React这个实际上就是 sass-loader 的版本过高或过低,与当前node版本不对应,不兼容 getOptions 函数方法,所以需要对 sass-loader 进行升级或降级处理。1、命令行卸载node-sass和sass-loader,重新安装跟你当前node版本对应的node-sass和sass-loader。2、或者可以删除node_Modules文件夹,直接修改package.json里sass-loader和node-sass里的版本,然后npm install四、node。_typeerror: this.getoptions is not a function
unocss使用&问题记录
2024-03-15unocss使用与常见问题_[unocss] entry Module not found, have you add `import 'uno.css'` in your mai
base64编码:js实现base64编码的3种方式,多场景下分析使用
2024-03-12推荐使用npm下载:npm install --save js-base64,下载后在node_Modules文件夹下面就能找到需要的base64.js。js实现base64编码,前端一般应用场景在与后端接口参数中体现,后端可能需要某个字段是base64编码的字符,这时候就需要用前端的方法进行转换,再作为参数传递到服务端。在vue中使用,用npm下载之后,直接用require引入使用:const Base64 = require('js-base64').Base64。// 对base64转编码。_js base64
vue 解决:Module not found: Error: Can‘t resolve ‘vue-router‘ 的问题
2024-03-08`找不到模块:错误:无法解析“vue-router”`根据报错的中文信息可知:应该是无法解析 `vue-router` 模块,应该是 `vue-router` 的版本或引入出了问题;_can't resolve 'vue-router
解决No matching export in “node_Modules/vue-demi/lib/index.mjs“ for import “hasInjectionContext“问题
2024-03-07将Vue升级到3.3及以上版本,将pinia升级到2.1.0及以上版本。发现2.1.0及以上版本需要引入Vue3.3及以上版本。这可能是Vue版本和Pinia版本不匹配导致的。升级完之后查看package.json文件。此时再运行项目,就可以成功运行了。查看package.json文件。_no matching export in "node_Modules/vue-demi/lib/index.mjs" for import "hasi
typescript项目css Modules
2024-03-06typescript项目中我们使用typings-for-css-Modules-loader来替代css-loader实现css Modules。1、typings-for-css-Modules-loader加载器介绍 Webpack加载器,用作css-loader的替代产品,可动态生成CSS模块的TypeScript类型这句话是什么意思呢?就是编译时处理css文件...
vue项目关于:Error: Cannot find Module ‘D:\@vue\cli-service\bin\vue-cli-service.js‘和npm 安装依赖时无法解析依赖树的解决方案
2024-03-06今天在创建vue项目时出现了两个问题,分享一下我是如何解决的。_cannot find Module '@vue/cli-service
Windows上搭建rtsp-simple-server流媒体服务器实现rtsp、rtmp等推流以及转流、前端html与Vue中播放hls(m3u8)视频流
2024-03-05上面讲了Nginx-http-flv-Module flv.js进行流媒体服务器搭建和前端播放视频流的过程。但是Nginx-http-flv-Module对于Windows的支持以及推流格式的支持优先,所以下面推荐rtsp-simple-server流媒体服务器的使用。_rtsp-simple-server