You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to build an extension using the latest rc version of the @rancher/shell library (example for release-2.8 version 1.2.5-rc.1 ) the build will fail with this error:
error in /home/runner/work/2.8-extension/2.8-extension/node_modules/@rancher/shell/initialize/layouts.tsERROR in /home/runner/work/2.8-extension/2.8-extension/node_modules/@rancher/shell/initialize/layouts.ts(1,35):1:35 Could not find a declaration file for module '@shell/utils/nuxt'. '/home/runner/work/2.8-extension/2.8-extension/node_modules/@rancher/shell/utils/nuxt.js' implicitly has an 'any' type. Try `npm i --save-dev @types/rancher__shell` if it exists or add a new declaration (.d.ts) file containing `declare module '@shell/utils/nuxt';` > 1 | import { sanitizeComponent } from '@shell/utils/nuxt'; | ^ 2 | import blank from '@shell/layouts/blank.vue'; 3 | import defaultLayout from '@shell/layouts/default.vue'; 4 | import home from '@shell/layouts/home.vue';
This is a backport issue for #12147, automatically created via GitHub Actions workflow initiated by @aalves08
Original issue body:
Describe the bug
When attempting to build an extension using the latest rc version of the
@rancher/shell
library (example forrelease-2.8
version1.2.5-rc.1
) the build will fail with this error:Example build action.
To Reproduce
@rancher/version
to1.2.5.-rc.1
yarn build-pkg <extension-pkg-name>
Result
Extension fails to build due to a type issue
Additional context
This appears to be caused by the
typegen.sh
script not finding thetsc
binary during the publish action:https://github.com/rancher/dashboard/actions/runs/11128727581/job/30924140033#step:8:15
The text was updated successfully, but these errors were encountered: