Closed 0yeifer closed 2 weeks ago
Confirmed on Ubuntu 22.04 with a non-docker version , frappe 15.47.2 and builder develop with the latest commit being 8c46dda (latest known commit at 18-11--24, 07:14)
The commit related with this issue must have been pushed between this Friday noon and this Saturday morning based on my own monitoring (some of my auto updating benches began failing at this time)
Error disappeared onbench update --reset
after builder was removed from the related bench.
same happened to me with frappe crm
Same problem here for Frappe Builder on Frappe Cloud.
This happened due to recent changes in frappe-ui that requires typescript as peer dependency.
Fixed with: https://github.com/frappe/builder/commit/357241645c7d9105ac6f38d24a019811518423b7
Same problem here for Frappe Builder on Frappe Cloud.
@Altrix-One Are you on private bench & are you using main
branch?
Same problem here for Frappe Builder on Frappe Cloud.
@Altrix-One Are you on private bench & are you using
main
branch?
Private branch of Frappe Builder - Develop
This has been reported all over, CRM also seems to be impacted.
Context
While following the installation steps outlined in the README for the Frappe Builder application, the process fails during the
bench get-app builder
command. The error seems to be related to a missing TypeScript dependency, which is required for building the application.Steps to Reproduce
bench build --app builder
step.Expected Behavior
The installation and build process should complete successfully as described in the README, without requiring any additional manual intervention.
Actual Behavior
The build process fails with the following error (excerpt):
For full error details, refer to the error trace above.
``` frappe@9db63f03354e:/workspace/development/frappe-bench$ bench get-app builder Getting builder $ git clone https://github.com/frappe/builder.git --depth 1 --origin upstream Cloning into 'builder'... remote: Enumerating objects: 353, done. remote: Counting objects: 100% (353/353), done. remote: Compressing objects: 100% (288/288), done. remote: Total 353 (delta 30), reused 191 (delta 18), pack-reused 0 (from 0) Receiving objects: 100% (353/353), 979.57 KiB | 3.11 MiB/s, done. Resolving deltas: 100% (30/30), done. Ignoring dependencies of builder. To install dependencies use --resolve-deps Installing builder $ /workspace/development/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /workspace/development/frappe-bench/apps/builder $ yarn install --check-files yarn install v1.22.22 [1/4] Resolving packages... [2/4] Fetching packages... [3/4] Linking dependencies... warning " > builder-ui@0.0.0" has unmet peer dependency "ace-builds@^1.22.0". warning "workspace-aggregator-b93b4877-aafa-4987-aa35-37e8f10a9dcc > builder-ui > @tiptap/extension-color@2.6.4" has unmet peer dependency "@tiptap/core@^2.6.4". warning "workspace-aggregator-b93b4877-aafa-4987-aa35-37e8f10a9dcc > builder-ui > @tiptap/extension-font-family@2.6.4" has unmet peer dependency "@tiptap/core@^2.6.4". warning "workspace-aggregator-b93b4877-aafa-4987-aa35-37e8f10a9dcc > builder-ui > @tiptap/extension-link@2.6.4" has unmet peer dependency "@tiptap/core@^2.6.4". warning "workspace-aggregator-b93b4877-aafa-4987-aa35-37e8f10a9dcc > builder-ui > @tiptap/extension-text-style@2.6.4" has unmet peer dependency "@tiptap/core@^2.6.4". warning "workspace-aggregator-b93b4877-aafa-4987-aa35-37e8f10a9dcc > builder-ui > @tiptap/vue-3@2.6.4" has unmet peer dependency "@tiptap/core@^2.6.4". warning "workspace-aggregator-b93b4877-aafa-4987-aa35-37e8f10a9dcc > builder-ui > @tiptap/vue-3 > @tiptap/extension-bubble-menu@2.6.4" has unmet peer dependency "@tiptap/core@^2.6.4". warning "workspace-aggregator-b93b4877-aafa-4987-aa35-37e8f10a9dcc > builder-ui > @tiptap/vue-3 > @tiptap/extension-floating-menu@2.6.4" has unmet peer dependency "@tiptap/core@^2.6.4". warning "workspace-aggregator-b93b4877-aafa-4987-aa35-37e8f10a9dcc > builder-ui > frappe-ui > @tiptap/extension-highlight@2.6.4" has unmet peer dependency "@tiptap/core@^2.6.4". warning "workspace-aggregator-b93b4877-aafa-4987-aa35-37e8f10a9dcc > builder-ui > frappe-ui > @tiptap/extension-image@2.6.4" has unmet peer dependency "@tiptap/core@^2.6.4". warning "workspace-aggregator-b93b4877-aafa-4987-aa35-37e8f10a9dcc > builder-ui > frappe-ui > @tiptap/extension-mention@2.6.4" has unmet peer dependency "@tiptap/core@^2.6.4". warning "workspace-aggregator-b93b4877-aafa-4987-aa35-37e8f10a9dcc > builder-ui > frappe-ui > @tiptap/extension-placeholder@2.6.4" has unmet peer dependency "@tiptap/core@^2.6.4". warning "workspace-aggregator-b93b4877-aafa-4987-aa35-37e8f10a9dcc > builder-ui > frappe-ui > @tiptap/extension-table@2.6.4" has unmet peer dependency "@tiptap/core@^2.6.4". warning "workspace-aggregator-b93b4877-aafa-4987-aa35-37e8f10a9dcc > builder-ui > frappe-ui > @tiptap/extension-table-cell@2.6.4" has unmet peer dependency "@tiptap/core@^2.6.4". warning "workspace-aggregator-b93b4877-aafa-4987-aa35-37e8f10a9dcc > builder-ui > frappe-ui > @tiptap/extension-table-header@2.6.4" has unmet peer dependency "@tiptap/core@^2.6.4". warning "workspace-aggregator-b93b4877-aafa-4987-aa35-37e8f10a9dcc > builder-ui > frappe-ui > @tiptap/extension-table-row@2.6.4" has unmet peer dependency "@tiptap/core@^2.6.4". warning "workspace-aggregator-b93b4877-aafa-4987-aa35-37e8f10a9dcc > builder-ui > frappe-ui > @tiptap/extension-text-align@2.6.4" has unmet peer dependency "@tiptap/core@^2.6.4". warning "workspace-aggregator-b93b4877-aafa-4987-aa35-37e8f10a9dcc > builder-ui > frappe-ui > @tiptap/extension-typography@2.6.4" has unmet peer dependency "@tiptap/core@^2.6.4". warning "workspace-aggregator-b93b4877-aafa-4987-aa35-37e8f10a9dcc > builder-ui > frappe-ui > @tiptap/suggestion@2.6.4" has unmet peer dependency "@tiptap/core@^2.6.4". [4/4] Building fresh packages... success Saved lockfile. $ cd frontend && yarn install yarn install v1.22.22 [1/4] Resolving packages... success Already up-to-date. Done in 0.41s. Done in 54.52s. $ bench build --app builder ✔ Application Assets Linked yarn run v1.22.22 $ node esbuild --production --apps builder --run-build-command File Size DONE Total Build Time: 164.137ms WARN Cannot connect to redis_cache to update assets_json WARN Cannot connect to redis_cache to update assets_json WARN Cannot connect to redis_cache to update assets_json Running build command for builder $ cd frontend && yarn build $ vite build --base=/assets/builder/frontend/ && yarn copy-html-entry vite v5.4.2 building for production... ✓ 24 modules transformed. x Build failed in 743ms error during build: [vite:vue] [@vue/compiler-sfc] Failed to load TypeScript, which is required for resolving imported types. Please make sure "typescript" is installed as a project dependency. /workspace/development/frappe-bench/apps/builder/node_modules/frappe-ui/src/components/Button.vue 57 | import type { ButtonProps } from './types/Button' 58 | 59 | const props = withDefaults(definePropsWorkaround
Adding TypeScript as a development dependency resolves the issue:
However, it is unclear if this step should be performed manually or if TypeScript should be added as a dependency in the application itself.
Environment
frappe/bench
)version-15
andversion-14
(last release)