解决引入pinia后的上线部署问题:Uncaught TypeError: Failed to resolve module specifier “vue“.
2024-04-07基于vue3 pinia的项目打包部署上线后无法正常运行。报错为:Uncaught TypeError: Failed to resolve module specifier "vue". Relative references must start with either "/", "./", or "../"。_uncaught typeerror: failed to resolve module specifier "vue". relative refer
vue3 gzip nginx 部署 静态文件被识别成text/html的问题
2024-04-03Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of “text/html”. Strict MIME type checking is enforced for module scripts per HTML spec.出现该问题的场景为解决vue gzip打包部署,nginx配置 try_files $uri $uri/ @router_nginx代理vue项目请求content-type: text/html
[Vue warn]: Invalid prop: type check failed for prop “pageSize“. Expected Number with value NaN
2024-03-24pageSize属性期待数据类型为Number,值为NaN没有被定义。分析可知,没有给total赋初始值的原因,给total赋初始值,问题就解决了。使用的elementUI框架(分页),在加载页面时出现以上报错信息。_invalid prop: type check failed for prop "pagesize". expected number with va
POJ - 3311 Hie with the Pie(Java & JS & Python & C)
2024-03-13POJ - 3311 Hie with the Pie(Java & JS & Python & C),实现:Floyd算法 全排列
版本冲突error in ./src/styles/element-variables.scss:Node Sass version 9.0.0 is incompatible with ^4.0.0
2024-03-02出现这个问题的原因就是可以在报错中看到我们当前的sass版本是9.0.0的,和项目中需要的4.0.0的不一样,就导致了冲突,那必须要同步一下,要么改项目里面的sass版本,要么把当前的sass版本改为项目需要的。这里我选择把自己的sass降级改为项目中需要的4.0.0版本。在运行项目的时候出现了这个问题,一开始是因为没有sass,使用命令下载了sass后又报了这个错误。然后再去运行项目就可以了。卸载原来安装的sass。_node sass version 9.0.0 is incompatible with ^4.0.0.
情侣纪念日网站html5源码教程
2024-02-15摘要: 情侣纪念日网站html5源码教程个人名片: 对人间的热爱与歌颂,可抵岁月冗长:sun_with_face: Github???:念舒_C.ying CSDN主页✏️:念舒_C.ying 个人博客:earth_asia: :修改内容大部分内容都在index.html里面进行修改“在一起”的时间修改在./js/lovetime.js里,已进行代码备注首页标题修改在./js/talk.js里,修改对应文字即可背景图都在./css/lovexhj.css里进行修改_情侣纪念日源码
tauri vite vue3开发环境下创建、启动运行和打包发布
2024-02-11ELIFECYCLE Command failed with exit code 1.”错误。报这个错误的原因是:第一次打包需要修改src-tauri/tauri.conf.json文件里的配置项"identifier": "com.tauri.dev",改成"identifier": "com.tauri.build",然后再运行打包命令。注意:新创建的项目,第一次打包会报 “_tauri只用vscode可以运行吗
vite打包问题解决 a JavaScript module script but the server responded with a MIME type of “text/html“.
2024-02-08前端遇到这种内网不报错上外网就报错的问题,只因本上可以确认是打包和路径的问题,检查自己的vite.config.ts。我用的是uniapp vue3 ts vite的脚手架。原因是不小心加了base,把base注释掉就可以了。_打包好expected a javascript module script but the server responded with a mi
vue报错:We‘re sorry but doesn‘t work properly without JavaScript enabled. Please enable it to continue
2024-02-08vue报错:We‘re sorry but doesn‘t work properly without JavaScript enabled. Please enable it to continue。_we're sorry but vue-antd-pro doesn't work properly without javascript enable
CSS 中的垂直居中法
2024-02-08Blog 原文链接我们都清楚元素相对其父级元素水平居中展示的方法:对于inline 的元素,我们都会想到为其父级元素设置tex-align : center。对于block 元素,我们会设定其 margin: 0px auto。 然而,垂直居中的实现方法,并没有这么简单,以下列出 6 种垂直居中法。参考文章:6 Methods For Vertical Centering with ...