# anil - Is it necessary to be logged in before i...
Channel: #contributor
Source: https://discord.com/channels/1233487248129921135/1510008724272447630
Started: 2026-05-29T19:55:35.033000+00:00
Last activity: 2026-07-12T05:28:13.256000+00:00
## anil — 2026-05-29T19:55:34.472000+00:00
Is it necessary to be logged in before importing JSON?
Attachment: image.png — https://community.tscircuit.com/media/1510008724088164513
## Rishabh — 2026-05-29T19:56:36.824000+00:00
I don't think so, you can make a fix for this
## anil — 2026-05-29T19:57:40.724000+00:00
oh okay, then i’ll add a fix for it 👍
## anil — 2026-05-30T03:50:22.985000+00:00
i have fixed this issue in that pr, Can you please take a look when you get a chance?
https://github.com/tscircuit/tscircuit.com/pull/3533
## anil — 2026-05-30T03:55:35.576000+00:00
i found a new issue when i import a circuit json file that contains coppertext, the tsx code editor becomes empty. i'd be happy to investigate and fix it if you could let me know which repository the fix should go into.
CC: <@757706909351411845> also
Attachment: circuit_3.json — https://cdn.discordapp.com/attachments/1510008724272447630/1510129524140933290/circuit_3.json?ex=6a565bf7&is=6a550a77&hm=55e047e3078f491c0668762e26dbed5543dc38469886afe7f44968ab840dd165&
Attachment: Screenshot_from_2026-05-30_02-34-03.png — https://community.tscircuit.com/media/1510129524480938005
## Seve — 2026-05-30T06:17:03.202000+00:00
there's no issue in the screenshot you posted afaik
## anil — 2026-05-30T12:13:00.827000+00:00
The issue is that the footprint is empty without including the copper text when importing from circuit JSON. There is no copper text rendering in the PCB and 3D view.
## anil — 2026-05-30T12:13:19.439000+00:00
i'd be happy to investigate and fix it if you could let me know which repository the fix should go into
## Seve — 2026-05-30T16:37:57.064000+00:00
Oh i see
## Seve — 2026-05-30T16:38:19.402000+00:00
Im not sure- possible circuit-json-to-tscircuit?
## Seve — 2026-05-30T16:38:28.796000+00:00
That would be a good fix!!
## anil — 2026-05-30T18:06:40.139000+00:00
i have fixed this issue in that pr, Can you please take a look when you get a chance?
https://github.com/tscircuit/circuit-json-to-tscircuit/pull/34
## anil — 2026-05-31T02:11:51.921000+00:00
Can you please take a look when you get a chance?
https://github.com/tscircuit/core/pull/2362
## anil — 2026-05-31T02:14:23.467000+00:00
https://github.com/tscircuit/circuit-json-to-tscircuit/pull/34
## Seve — 2026-05-31T05:43:51.403000+00:00
Cc <@778624824875941908> for core pr
## anil — 2026-06-01T11:20:47.779000+00:00
<@778624824875941908> https://github.com/tscircuit/core/pull/2362
## anil — 2026-06-01T11:21:34.762000+00:00
Can you please take a look when you get a chance?
## anil — 2026-06-04T06:25:50.779000+00:00
CC <@778624824875941908> https://github.com/tscircuit/core/pull/2362
## anil — 2026-06-04T06:25:57.569000+00:00
Can you please take a look when you get a chance?
## anil — 2026-06-14T12:42:13.172000+00:00
Hey guys, why does the capacitor disappear when I apply pcbrotation={45} and schrotation={45}?
Attachment: Screenshot_from_2026-06-14_18-08-59.png — https://community.tscircuit.com/media/1515697872308539453
## Seve — 2026-06-14T12:46:17.305000+00:00
People dont really rotate sch 45
## anil — 2026-06-14T12:48:27.881000+00:00
okay yes that's make sense
## anil — 2026-06-14T12:51:31.420000+00:00
When I create a circuit and apply a 45° rotation on the PCB, everything works correctly, after importing the downloaded circuit JSON file, the capacitor pads are missing, and the courtyard does not retain its rotation. Where is the bug?
Attachment: image.png — https://community.tscircuit.com/media/1515700213875212429
## Seve — 2026-06-14T12:54:38.177000+00:00
I would start by repro’ing inside tscircuit/core
## Seve — 2026-06-14T12:55:18.457000+00:00
Actually, this is like a tsx generation issue
## Seve — 2026-06-14T12:55:28.020000+00:00
Circuit json to tscircuit ig
## anil — 2026-06-14T13:04:39.108000+00:00
Okay let me try to fix there
## anil — 2026-06-14T15:50:15.581000+00:00
Yes you are right the bug inside tscircuit/core
here is the repro
https://github.com/tscircuit/core/pull/2445
## anil — 2026-06-15T03:46:10.686000+00:00
<@757706909351411845>
## anil — 2026-06-21T03:03:03.238000+00:00
Oh wow, I successfully fixed the capacitor pad and silkscreen text rotation issue. Now I'm moving on to the courtyard. It will probably need to be fixed in the same repository as well. Am I correct?
Attachment: Screenshot_from_2026-06-21_08-31-09.png — https://community.tscircuit.com/media/1518088835756593262
## anil — 2026-06-21T04:18:54.040000+00:00
<@757706909351411845> <@778624824875941908> https://github.com/tscircuit/core/pull/2489
## anil — 2026-06-21T05:03:26.731000+00:00
DONE!!!
## shibo — 2026-06-21T05:50:07.229000+00:00
now when you fix it make into a regression test
## anil — 2026-06-21T05:57:53.009000+00:00
I have a question. When I create a new PCB board, I use components such as resistors and capacitors. However, after downloading/exporting the circuit and then importing it again, those components are converted into objects like SMT pads, courtyards, silkscreen text, and paths instead of remaining as resistor or capacitor components.
Is this expected behavior (a feature) or is it an issue? If it is expected, can we improve the import/export process so that the original component information is preserved and the components remain editable as resistor and capacitor footprints after re-importing?
## anil — 2026-06-21T06:22:50.765000+00:00
Object literal may only specify known properties, and 'pcbRotation' does not exist in type '{ width: string | number; height: string | number; layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | { name: "top" | "bottom" | "inner1" | ... 4 more ... | "inner6"; } | undefined; ... 25 more ...; isStrokeDashed?: boolean | undefined; }'.ts(2353)
## anil — 2026-06-21T06:32:55.328000+00:00
<@778624824875941908> <@757706909351411845> https://github.com/tscircuit/props/pull/700
## anil — 2026-06-22T04:52:15.531000+00:00
<@778624824875941908>
https://github.com/tscircuit/core/pull/2491
## anil — 2026-06-30T17:06:21.187000+00:00
<@757706909351411845>
I have a question. When I create a new PCB board, I use components such as resistors and capacitors. However, after downloading/exporting the circuit and then importing it again, those components are converted into objects like SMT pads, courtyards, silkscreen text, and paths instead of remaining as resistor or capacitor components.
Is this expected behavior (a feature) or is it an issue? If it is expected, can we improve the import/export process so that the original component information is preserved and the components remain editable as resistor and capacitor footprints after re-importing?
## Seve — 2026-06-30T17:53:19.195000+00:00
can you record a video or something? I'm not sure what import feature you're using- it sounds like you might be using some kind of deprecated import
## anil — 2026-07-01T06:41:44.220000+00:00
Sorry, I was referring to the conversion of the circuit JSON to TSX code. When I import the circuit JSON, it displays instead of or components. can we fix that?
Attachment: Screenshot_from_2026-06-21_08-31-09.png — https://community.tscircuit.com/media/1521767747640496138
## Seve — 2026-07-01T06:42:24.776000+00:00
Yea youre importing a footprint
## anil — 2026-07-01T06:43:32.965000+00:00
No, I am importing the circuit JSON that I previously generated from a circuit containing resistors and capacitors.
## Seve — 2026-07-01T06:43:47.131000+00:00
Corcuit json can be imported as multiple components or as a footprint, it is most commonly imported via direct import by users
## Seve — 2026-07-01T06:44:16.832000+00:00
Youre importing it as a footprint- despite what the ui may label the button, which is why its imported as a footprint
## Seve — 2026-07-01T06:45:22.995000+00:00
Direct import means “import circuitJson from “./circuit.json”
## Seve — 2026-07-01T06:45:42.707000+00:00
Then you pass the circuitJson to a subcircuit
## anil — 2026-07-01T06:46:51.391000+00:00
So, can we directly import the circuit JSON using `import circuitJson from "./circuit.json"` and get the resistor and capacitor components from it?
## Seve — 2026-07-01T06:47:01.246000+00:00
Should work
## Seve — 2026-07-01T06:47:10.705000+00:00
Just provide that to the subcircuit element
## Seve — 2026-07-01T06:47:25.987000+00:00