Vue3
4. pinia.js?v=b1ec910e:1370 Uncaught Error: [🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
3. vue3 Jenkins 打包报错
/lib64/libz.so.1: version `ZLIB_1.2.9' not found (required by /home/jenkins/.jenkins/workspace/agent
解决办法:https://www.cnblogs.com/liujiaxin2018/p/17811111.html
依赖 autoconf:
yum install autoconf
yum install automake libtool
autoreconf --version
2. vue3 + vite
npm run build 打包报错 。使用 node v16.20.2 & vite 版本 v4.3.2
E:\ws06\test-new\20240620-syt\syt-02\node_modules\vue-tsc\bin\vue-tsc.js:68
throw err;
^
Search string not found: "for (const existingRoot of buildInfoVersionMap.roots) {"
(Use `node --trace-uncaught ...` to show where the exception was thrown)
解决办法:
删除 node_module 包
npm update
npm install vue-tsc@latest --save-dev
1. 解决办法:在 package.json 中加上 rules。
"eslintConfig": { "root": true, "env": { "node": true }, "extends": [ "plugin:vue/vue3-essential", "eslint:recommended" ], "parserOptions": { "parser": "babel-eslint" },
"rules": { "no-debugger": "off", "no-console": "off" } },