typebot.io icon indicating copy to clipboard operation
typebot.io copied to clipboard

On `tsc --build`, implicit any type issue when it's not supposed to

Open baptisteArno opened this issue 1 year ago • 8 comments

Describe the bug I am currently refactoring the monorepo to use typescript project references to have a better IDE Intellisense experience.

I am almost done but there is still an issue remaining when running pnpm tsc --build

It shows packages/logic/computeResultTranscript.ts:213:10 - error TS7006: Parameter 'item' implicitly has an 'any' type.

But when checking on any IDE, there is no issue, the type is inferred correctly so I don't know what's going on

To Reproduce Steps to reproduce the behavior:

  1. Clone the repo
  2. Checkout refacto/ts-project-references branch
  3. Run pnpm install
  4. Run pnpm turbo db:generate
  5. Run pnpm tsc --build

I need help from a Typescript wizard 🙏

baptisteArno avatar Aug 28 '24 16:08 baptisteArno

💎 $75 bounty • Typebot

Steps to solve:

  1. Start working: Comment /attempt #1750 with your implementation plan
  2. Submit work: Create a pull request including /claim #1750 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

Thank you for contributing to baptisteArno/typebot.io!

Add a bountyShare on socials

Attempt Started (GMT+0) Solution
🟢 @syedbarimanjan Aug 28, 2024, 4:26:37 PM WIP
🟢 @Bhavyajain21 Aug 29, 2024, 4:20:01 PM WIP

algora-pbc[bot] avatar Aug 28 '24 16:08 algora-pbc[bot]

/attempt #1750

Algora profile Completed bounties Tech Active attempts Options
@syedbarimanjan 8 bounties from 4 projects
TypeScript, HTML,
Ruby & more
Cancel attempt

syedbarimanjan avatar Aug 28 '24 16:08 syedbarimanjan

Interesting! I would like to reproduce this first before an attempt

varshith257 avatar Aug 28 '24 16:08 varshith257

@baptisteArno can you help with this error Screenshot from 2024-08-28 22-15-29

syedbarimanjan avatar Aug 28 '24 17:08 syedbarimanjan

Oh right, you need to run pnpm turbo db:generate

baptisteArno avatar Aug 28 '24 18:08 baptisteArno

/attempt #1750

Algora profile Completed bounties Tech Active attempts Options
@Bhavyajain21 15 bounties from 3 projects
TypeScript, Rust,
JavaScript & more
Cancel attempt

Bhavyajain21 avatar Aug 29 '24 16:08 Bhavyajain21

[!NOTE] The user @syedbarimanjan is already attempting to complete issue #1750 and claim the bounty. We recommend checking in on @syedbarimanjan's progress, and potentially collaborating, before starting a new solution.

algora-pbc[bot] avatar Aug 29 '24 16:08 algora-pbc[bot]

Removing the bounty for this, I decided to not use project references in the end 🙏 Thank you for attempting this

baptisteArno avatar Aug 31 '24 07:08 baptisteArno