Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lint compile fail on deployment. #4

Open
cleancoindev opened this issue May 10, 2023 · 1 comment
Open

lint compile fail on deployment. #4

cleancoindev opened this issue May 10, 2023 · 1 comment

Comments

@cleancoindev
Copy link

I am hitting a compile error on https://github.com/cleancoindev/TestGame/blob/main/application/components/ApproxRewards.tsx

it is below:

Failed to compile.
./components/ApproxRewards.tsx:38:9
Type error: Argument of type 'string' is not assignable to parameter of type 'unknown[]'.
36 | const p = (await miningContract.call(
37 | "playerPickaxe",

38 | address
| ^
39 | )) as ContractMappingResponse;
40 |
41 | if (p.isData) {
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Command "yarn run build" exited with 1
Deployment completed
BUILD_UTILS_SPAWN_1: Command "yarn run build" exited with 1

How do i fix this?

I came up with several ideas and am trying them, i will submit a pull request when i get it compiling past the lint ts error.

@cleancoindev
Copy link
Author

Also here:

./components/CurrentGear.tsx:35:9
Type error: Argument of type 'string' is not assignable to parameter of type 'unknown[]'.
33 | const p = (await miningContract.call(
34 | "playerPickaxe",

35 | address
| ^
36 | )) as ContractMappingResponse;
37 |
38 | // Now we have the tokenId of the equipped pickaxe, if there is one, fetch the metadata for it
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Command "yarn run build" exited with 1
Deployment completed
BUILD_UTILS_SPAWN_1: Command "yarn run build" exited with 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant