问题工程里有这么一段代码:
1234<template> <img id="logo" alt="Wails logo" src="./assets/images/logo-universal.png"/> <HelloWorld/></template>
IDE 提示错误信息: The template root requires exactly one element.
原因这是因为 vue的模版中只能有一个根节点,所以在 <template>中插入第二...
问题在基于vue3+vite+typescript的UI组件库时设置了别名会有typescript提示
找不到模块“XXX”或其相应的类型声明ts(2307)
解决办法检查vite.config.ts里面有没有配置alias别名路径,没有就添加上。
12345678export default defineConfig({ plugins: [vue()], resolve: { alias: { '@': path.resolve(__dirname, 'src'), } &...
环境OS Version: mac 14.2.1 (23C71)Wails Version: v2.7.1
问题M1 MAC 环境下打包的 wails app 在另一台M1 MAC 下打不开,报错 “APP”已损坏,无法打开。 你应该将它移到废纸篓。
解决在终端执行下面命令就可以了。
1sudo xattr -d com.apple.quarantine /Applications/APP_NAME.app
以上。
问题今天,新建个了vue 3个项目打算撸起袖子大干一场, 在安装下载依赖naive ui包时居然报错了,出师未捷身先死啊!
123> npm i -D naive-ui(node:11149) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [TLSSocket]. Use emitter.setMaxListeners() to increase limit(Use `node --trace-warnings ...` to ...
闲的无事,把自己服务器的ES和Kibana从7.10.1升级到8.x, 记录一下遇到的问题。
问题现象启动服务,ES正常,但在浏览器访问http://127.0.0.1:5601提示未准备就绪,日志提示:
1[FATAL][root] Error: [config validation of [elasticsearch].username]: value of "elastic" is forbidden. This is a superuser account that cannot write to system indices that Kibana need...
问题在基于vue3+vite+typescript的UI组件库时设置了别名会有typescript提示
找不到模块“XXX”或其相应的类型声明ts(2307)
解决办法检查vite.config.ts里面有没有配置alias别名路径,没有就添加上。
12345678export default defineConfig({ plugins: [vue()], resolve: { alias: { '@': path.resolve(__dirname, 'src'), } &...
问题服务器出现问题:
1There appears to be trouble with your network connection. Retrying
原因yarn 超时
解决办法123456#查看代理yarn config list#删除代理yarn config delete proxy#更换淘宝镜像yarn config set registry https://registry.npm.taobao.org
以上。
问题描述旧项目在拉取/推送版本时失败,报错如下:
1234> git pull origin master来自 gitlab.hahaha.com:backend/server * branch master -> FETCH_HEAD致命错误:拒绝合并无关的历史
或
1234567> git push origin masterTo gitlab.hahaha.com:backend/server.git ! [rejected] master -> master (non-fast-forward)错误:无法推送一些...
问题描述拉取远程镜像时出现报错:
12git pull origin releaseerror: cannot lock ref ‘refs/remotes/origin/release/xxxx‘: ‘refs/remotes/origin/release‘ 已存在,无法创建
git error: cannot lock ref 是一个常见的 Git错误,通常会在尝试进行 Git 操作时出现。这个错误的原因通常是由于 Git 无法锁定引用(ref),例如分支或标签。这可能是因为其他进程正在占用该引用,或者您没有足够的权限来修改它。
解决方案亲测有效的解决方案:
1git updat...
在 mac终端运行命令的时候会被提示没有同意 xcode证书 ,这个时候需要在 Terminal中同意 license。
123You have not agreed to the Xcode license agreements. You must agree to both license agreements below in order to use Xcode.Press the 'return' key to view the license agreements at '/Applications/Xcode.app/Contents/Reso...