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

Improve message Error: Cannot read properties of undefined reading getPortSelector #345

Open
seveibar opened this issue Nov 14, 2024 · 6 comments

Comments

@seveibar
Copy link
Contributor

seveibar commented Nov 14, 2024

Reproduction:

import { useUsbC } from "@tsci/seveibar.smd-usb-c"
import { useRP2040 } from "@tsci/seveibar.rp2040"

export const RP2040Module = (props: { name: string }) => {
  const RP2040 = useRP2040("U1")
  const USBC = useUsbC("J1")
  
  return (
    <group>
      <RP2040 pcbY={8} />
      <USBC schX={-6} pcbY={-8} />

      <trace from={USBC.GND} to="net.GND" />
      <trace from={RP2040.GND} to="net.GND" />
      
    </group>
  )
}

Error

Render Error: Cannot read properties of undefined (reading 'getPortSelector')

Make sure to create a reproduction, but don't import snippets for the reproduction, just use a resistor or something.

@seveibar
Copy link
Contributor Author

This is a shitty error message when a port selector can't be found (in this case, USBC.GND was missing)

@seveibar seveibar transferred this issue from tscircuit/tscircuit.com Nov 23, 2024
@seveibar seveibar changed the title Error: Cannot read properties of undefined reading getPortSelector Improve message Error: Cannot read properties of undefined reading getPortSelector Nov 23, 2024
@seveibar
Copy link
Contributor Author

/bounty $15

Copy link

algora-pbc bot commented Nov 23, 2024

💎 $15 bounty • tscircuit

Steps to solve:

  1. Start working: Comment /attempt #345 with your implementation plan
  2. Submit work: Create a pull request including /claim #345 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 tscircuit/core!

Add a bountyShare on socials

Attempt Started (GMT+0) Solution
🔴 @MustafaMulla29 Feb 8, 2025, 1:00:54 PM WIP

@MustafaMulla29
Copy link
Contributor

MustafaMulla29 commented Feb 8, 2025

/attempt #345

Algora profile Completed bounties Tech Active attempts Options
@MustafaMulla29 1 tscircuit bounty
Java, TypeScript,
HTML
﹟107
Cancel attempt

@MustafaMulla29
Copy link
Contributor

@seveibar Hello, I have made a PR with proof which solves the issue, can you please review this: #607

Copy link

algora-pbc bot commented Feb 12, 2025

The bounty is up for grabs! Everyone is welcome to /attempt #345 🙌

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

Successfully merging a pull request may close this issue.

2 participants