摘要: 使用 Vue3 + Pinia + PNPM + Vite 开发一个前端项目时,运行preview,报错: pinia Cannot read properties of undefined (reading '_s') 报错的代码是压缩后的: function we(e, t, n) { let 阅读全文
posted @ 2023-10-24 21:41 死宅程序员 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 背景 在一个 ts 工程引入 @carbon/web-components的bx-input组件时,编译报错: import '@carbon/web-components/es/components/input/input.js'; 解决 经查,typescript 4.0 中会爆出这个问题Pro 阅读全文
posted @ 2023-03-15 15:08 死宅程序员 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 背景 用 Vue3 + Electron 开发了个 PDF 自由合并客户端。 客户端侧代码慢慢膨胀,于是想将默认的路径src/background.js调整到 electron/background.js。 于是修改了: vue.config.js pluginOptions: { electron 阅读全文
posted @ 2022-12-07 00:11 死宅程序员 阅读(554) 评论(0) 推荐(0) 编辑
摘要: 问题 Nodejs 工程下,用 sequelize 向一个现有的 MySQL 数据库中初始化数据时报错,如题: original: Error: Unknown storage engine 'InnoDB' ENV MySQL 5.6 Sequelize: ^6.25.5 排查 查看 mysql 阅读全文
posted @ 2022-11-21 00:07 死宅程序员 阅读(84) 评论(0) 推荐(0) 编辑
摘要: npm install -g @vue-cli vue create vue3-electron vue add electron-builder yarn add electron yarn add bootstrap@next yarn electron:serve 阅读全文
posted @ 2022-10-22 01:14 死宅程序员 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 我有个model总报错: 2022-10-17 00:22:15: log add: MongooseError: Operation `logs.insertOne()` buffering timed out after 10000ms 0|tinyurl | at Timeout.<anony 阅读全文
posted @ 2022-10-17 00:33 死宅程序员 阅读(414) 评论(0) 推荐(0) 编辑
摘要: 我开发的一个火狐 addon,在上架时总是出现警告,其中不少是与 innerHTML有关: Unsafe assignment to innerHTML 警告: Due to both security and performance concerns, this may not be set us 阅读全文
posted @ 2022-02-19 15:41 死宅程序员 阅读(67) 评论(0) 推荐(0) 编辑
摘要: Env CentOS 7.x Nodejs 8.x 操作 通过npm config list 查看配置,没有自定义设置 npm config get prefix 看到了路径指向:/root/node_modules 不过这个路径根本没有 node_modules 文件夹 通过重新安装全局依赖包,并 阅读全文
posted @ 2022-01-18 11:06 死宅程序员 阅读(1150) 评论(0) 推荐(0) 编辑
摘要: TypeError [ERR_INVALID_ARG_TYPE]: The "original" argument must be of type function at promisify (internal/util.js:214:11) at Object.<anonymous> (/root 阅读全文
posted @ 2022-01-18 10:28 死宅程序员 阅读(2556) 评论(3) 推荐(1) 编辑
摘要: 在开发一个 Chrome 扩展时,依赖了element-plus。 想体验按需加载的福利,于是借助了这个 package:unplugin-element-plus/webpack,引入方式如下 const ElementPlus = require('unplugin-element-plus/w 阅读全文
posted @ 2021-12-28 12:16 死宅程序员 阅读(6584) 评论(0) 推荐(0) 编辑