optre
一位前端开发者,keep going!
摘要: 谷歌浏览器输入地址栏输入:chrome://flags/ , 然后搜索 unsafely-treat-insecure-origin-as-secure,输入对应需要打开的域名 添加白名单 阅读全文
posted @ 2023-11-30 10:30 optre 阅读(337) 评论(0) 推荐(0) 编辑
摘要: 前提 在项目环境 vue3.3.4 + vite4.4.11 下,安装dayjs1.11.9 报错 Uncaught SyntaxError: The requested module '/vue3-print/node_modules/.pnpm/dayjs@1.11.9/node_modules 阅读全文
posted @ 2023-11-07 16:41 optre 阅读(396) 评论(0) 推荐(0) 编辑
摘要: 项目配置依赖: vue3.3.4 + vite4.4.11 + eslint8.46.0 报错信息 Failed to load plugin '@typescript-eslint' declared in '.eslintrc.cjs » @vue/eslint-config-typescrip 阅读全文
posted @ 2023-11-03 10:05 optre 阅读(1137) 评论(0) 推荐(0) 编辑
摘要: 要在 Lerna 配置中添加发布时的 commitlint,你可以按照以下步骤进行操作: 1. 首先,确保你已经在项目中安装了 `commitlint`。你可以使用以下命令进行安装: ```shell npm install --save-dev @commitlint/cli @commitlin 阅读全文
posted @ 2023-08-22 19:44 optre 阅读(111) 评论(0) 推荐(0) 编辑
摘要: ## 项目环境 ```bash C:\Users\19139>node -v v18.16.0 C:\Users\19139>pnpm -v 8.2.0 ``` vue3+vite4打包报错 ```text "vue": "3.3.4", "vite": "4.0.4", "rollup": "^3 阅读全文
posted @ 2023-08-09 21:25 optre 阅读(1937) 评论(0) 推荐(0) 编辑
摘要: # 报错信息 ``` PS D:\myCode\excercise\node> node index.js (node:26820) Warning: To load an ES module, set "type": "module" in the package.json or use the 阅读全文
posted @ 2023-07-13 16:34 optre 阅读(581) 评论(0) 推荐(0) 编辑
摘要: ## 滚动条bug展示如下: ![image](https://img2023.cnblogs.com/blog/1521339/202305/1521339-20230522194407439-1311091929.png) ## 造成bug原因排查: 由于对`Table`表格进行了二次封装,传递 阅读全文
posted @ 2023-05-22 19:43 optre 阅读(1087) 评论(0) 推荐(0) 编辑
摘要: 代码库地址:https://github.com/vform666/variant-form3-vite 运行项目 variant-form3-vite 报错 环境依赖 进入 variant-form3-vite 项目,执行 pnpm i 报错: error when starting dev se 阅读全文
posted @ 2023-05-17 15:25 optre 阅读(876) 评论(0) 推荐(0) 编辑
摘要: 报错信息: Uncaught Error: [🍍]: getActivePinia was called with no active Pinia. Did you forget to install pinia? const pinia = createPinia() app.use(pinia 阅读全文
posted @ 2023-04-10 15:46 optre 阅读(1763) 评论(0) 推荐(0) 编辑
摘要: 使用app.component 查看 [1]你可以通过全局 API app.component 注册全局组件并查看。在 Vue 3 中,你可以通过以下方式来查看挂载在 app 上的全局组件: const app = createApp({}); // 全局注册组件 app.component('my 阅读全文
posted @ 2023-04-08 20:12 optre 阅读(2493) 评论(0) 推荐(0) 编辑