VuePagesAction icon indicating copy to clipboard operation
VuePagesAction copied to clipboard

Inconsistent build outcome vs local

Open renyuneyun opened this issue 1 year ago • 0 comments

First of all, thanks for making the action. It worked for my project, until a recent update.

I updated some dependencies (including update TS from 4 to 5) and changed some settings of my project. The build succeeds on my local machine.

However, when using this action, on github executor, it complains the following error:

> [email protected] build-only
> vite build

vite v4.4.6 building for production...
transforming...
src/common/userInfoUtils.ts(27,45): error TS7006: Parameter 'data' implicitly has an 'any' type.
src/components/ResourceItem.vue(55,45): error TS7006: Parameter 'data' implicitly has an 'any' type.
src/components/ResourceItem.vue(81,45): error TS7006: Parameter 'data' implicitly has an 'any' type.
ERROR: "type-check" exited with 2.
Error: Process completed with exit code 1.

I have checked the commands, and they should be the same: npm run build. I have also tried removing node_modules and run npm ci && npm run build. Still no such errors on my local machine.

Any ideas on why this happened, and how to solve it?

The relevant build environment is: https://github.com/renyuneyun/PermiX/commit/a339279de33b677428d33fd381243c0feae6c89a

renyuneyun avatar Jul 22 '23 18:07 renyuneyun