Publish project error message

Hello

I did a “run dev build” and I corrected a lot of errors but the ones that remain I can’t correct them can you help me?

Failed to compile.

./app/page.tsx
19:10  Error: 'isDropdownVisible' is assigned a value but never used.  @typescript-eslint/no-unused-vars
19:29  Error: 'setDropdownVisible' is assigned a value but never used.  @typescript-eslint/no-unused-vars

./components/ui/3d-card.tsx
38:29  Error: 'e' is defined but never used.  @typescript-eslint/no-unused-vars
43:29  Error: 'e' is defined but never used.  @typescript-eslint/no-unused-vars
125:6  Warning: React Hook useEffect has a missing dependency: 'handleAnimations'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps

./components/ui/evervault-card.tsx
24:61  Error: Unexpected any. Specify a different type.  @typescript-eslint/no-explicit-any
60:63  Error: Unexpected any. Specify a different type.  @typescript-eslint/no-explicit-any
93:46  Error: Unexpected any. Specify a different type.  @typescript-eslint/no-explicit-any

./components/ui/infinite-moving-cards.tsx
28:6  Warning: React Hook useEffect has a missing dependency: 'addAnimation'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps

./components/ui/input.tsx
5:18  Error: An interface declaring no members is equivalent to its supertype.  @typescript-eslint/no-empty-object-type 

./components/ui/textarea.tsx
5:18  Error: An interface declaring no members is equivalent to its supertype.  @typescript-eslint/no-empty-object-type 

./components/ui/use-toast.ts
19:7  Error: 'actionTypes' is assigned a value but only used as a type.  @typescript-eslint/no-unused-vars

info  - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/app/api-reference/config/eslint#disabling-rules

“is defined but never used”: Use it, or remove it.
“unexpected any”: You were supposed to tell it what specific type to use.
'has a missing dependency": you forgot to install something.
“An interface declaring no members is equivalent to its supertype”: Whatever supertype the type is extending, you could have used the supertype for instead, you didnt need to declare your own type.
“is assigned a value but only used as a type”: Was this file meant to be a tsx instead of a ts?

2 Likes

For “unexpected any” I don’t see what I have to do here is the code

function onMouseMove({ currentTarget, clientX, clientY }: any ) {
    const { left, top } = currentTarget.getBoundingClientRect();
    mouseX.set(clientX - left);
    mouseY.set(clientY - top);

    const str = generateRandomString(1500);
    setRandomString(str);
  }

For the type it is a .tsx

Your error message disagrees with you.

1 Like

I don’t understand sorry I’m a novice I managed to correct some errors but those I can’t.

I followed a tutorial and now I’m completely stuck if you can help me that would be great but I don’t know how to correct all that.
here is the tutorial
https://www.youtube.com/watch?v=uyi44-SNcEc

I corrected some errors but I really don’t see how to do the others. Can you help me?

I dont… know how more i can help you there short of coming to your house and pushing the button for you. You didn’t install the dependency. Install it. This really isn’t a difficult explanation.

I dont know what type that’s supposed to be. It’s your function. You tell me what type it should be. I cant solve this for you.

Again, I dont know what supertype your types in these lines are extending. They’re your types. What did you extend from?

1 Like