Skip to content

Inconsistent build outcome vs local #16

@renyuneyun

Description

@renyuneyun

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:

> solid-permission-viewer@0.1.0 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: renyuneyun/PermiX@a339279

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions