yarn install v1.22.19
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
warning "@graphql-codegen/cli > @whatwg-node/fetch > @whatwg-node/node-fetch@0.3.0" has unmet peer dependency "@types/node@^18.0.6".
warning "@graphql-codegen/cli > @graphql-tools/code-file-loader > @graphql-tools/graphql-tag-pluck > @babel/plugin-syntax-import-assertions@7.22.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning " > @testing-library/user-event@14.5.2" has unmet peer dependency "@testing-library/dom@>=7.21.4".
warning " > stylelint-config-prettier@9.0.5" has incorrect peer dependency "stylelint@>= 11.x < 15".
warning " > vite-plugin-pwa@0.19.7" has unmet peer dependency "workbox-build@^7.0.0".
warning Workspaces can only be enabled in private projects.
[5/5] Building fresh packages...
Building with Vite ⚡️
vite v5.2.6 building for production...
transforming...
✓ 5 modules transformed.
x Build failed in 742ms
error during build:
TypeError: [vite-plugin-pwa:build] compilerCore.isBuiltInType is not a function
file: /opt/zammad/app/frontend/apps/mobile/AppMobile.vue
at Object.isBuiltInComponent (/opt/zammad/node_modules/@vue/compiler-sfc/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js:2380:22)
at isComponent (/opt/zammad/node_modules/@vue/compiler-sfc/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:2619:152)
at onCloseTag (/opt/zammad/node_modules/@vue/compiler-sfc/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:2551:16)
at Object.onclosetag (/opt/zammad/node_modules/@vue/compiler-sfc/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:2186:13)
at Tokenizer.stateInClosingTagName (/opt/zammad/node_modules/@vue/compiler-sfc/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:749:16)
at Tokenizer.stateInRCDATA (/opt/zammad/node_modules/@vue/compiler-sfc/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:592:14)
at Tokenizer.parse (/opt/zammad/node_modules/@vue/compiler-sfc/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:1055:16)
at Object.baseParse (/opt/zammad/node_modules/@vue/compiler-sfc/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:2820:13)
at Object.parse (/opt/zammad/node_modules/@vue/compiler-sfc/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js:2956:23)
at Object.parse$2 [as parse] (/opt/zammad/node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js:1851:24)
at createDescriptor (file:///opt/zammad/node_modules/@vitejs/plugin-vue/dist/index.mjs:74:43)
at transformMain (file:///opt/zammad/node_modules/@vitejs/plugin-vue/dist/index.mjs:2367:34)
at Object.transform (file:///opt/zammad/node_modules/@vitejs/plugin-vue/dist/index.mjs:2910:16)
at file:///opt/zammad/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:19563:40
pid 488796 exit 1
Build with Vite failed! ❌
Is this relevant in any way? Zammad seems to run fine.
After upgrading my debian-package installation to a new version, I always have to change one line in a template (old story), but this time the vite build (started via zammad run rake assets:precompile) fails with this error.
I have been running an update on a second instance without any errors. The only visible deviation for me is, that the instance with the error has an extra package installed.
I had a similar problem when I did the Debian server updates. (Zammad update 6.2 → 6.3) Afterwards Zammad did not start anymore, there was an error on the Zammad page. (“Something went wrong”)
I was able to solve the problem by running “apt upgrade”
On the faulty instance i have a self written package for providing sms support for a placetel account.
The other difference is, that i did not stop the elasticsearch service during the upgrade on the faulty machine. Actually there is a new package available. I will look, if the update runs without problems.
Running zammad run rails assets:precompile also fails, as vite is not available anymore.
Doing a local re-install of vite does also not work:
1 verbose cli [ '/opt/zammad/bin/node', '/usr/bin/npm', 'ci' ]
2 info using npm@6.14.16
3 info using node@v20.9.0
4 verbose npm-session 6209944c57c198b1
5 info prepare initializing installer
6 verbose prepare starting workers
7 verbose prepare installation prefix: /opt/zammad
8 verbose prepare using package-lock.json
9 warn prepare removing existing node_modules/ before installation
10 verbose checkLock verifying package-lock data
11 verbose teardown shutting down workers.
12 info teardown Done in 0.001s
13 verbose stack Error: cipm can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
13 verbose stack
13 verbose stack
13 verbose stack Missing: @apollo/client@^3.9.9
13 verbose stack Missing: @formkit/core@^1.6.0
13 verbose stack Missing: @formkit/dev@^1.6.0
13 verbose stack Missing: @formkit/i18n@^1.6.0
13 verbose stack Missing: @formkit/inputs@^1.6.0
13 verbose stack Missing: @formkit/rules@^1.6.0
13 verbose stack Missing: @formkit/tailwindcss@^1.6.0
13 verbose stack Missing: @formkit/themes@^1.6.0
13 verbose stack Missing: @formkit/utils@^1.6.0
13 verbose stack Missing: @formkit/validation@^1.6.0
13 verbose stack Missing: @formkit/vue@^1.6.0
13 verbose stack Missing: @github/webauthn-json@^2.1.1
initially, I had the same error as mentioned above:
[vite-plugin-pwa:build] compilerCore.isBuiltInType is not a function
...
Update was running on Ubuntu Host.
prev Version: 6.2.0-1712931839.b27a0d24.focal
new version: 6.3.0-1713783379.979314a7.focal