# Vivek Vijayan - Hi guys.. I've one observation... Channel: #support Source: https://discord.com/channels/1233487248129921135/1526257995648864417 Started: 2026-07-13T16:04:23.255000+00:00 Last activity: 2026-07-13T16:44:49.396000+00:00 ## Vivek Vijayan — 2026-07-13T16:04:22.665000+00:00 Hi guys.. I've one observation. This is my high level code. ``` export const power_circuit = () => { return ( ); }; ``` If the modules are defined inside , then the will not connect. If modules are defined inside , is connects the ports without any issues. Attached images show both conditions **Case 1: module as ** ``` export const BmsMonitorModule = ({ name, schX, schY }: BmsMonitorModuleProps) => { return ( ... ) } ``` **Case 2: module as ** ``` export const BmsMonitorModule = ({ name, schX, schY }: BmsMonitorModuleProps) => { return ( ... ) } ``` Attachment: image.png — https://community.tscircuit.com/media/1526257995078701218 Attachment: image.png — https://community.tscircuit.com/media/1526257995489607782 ## Seve — 2026-07-13T16:44:26.890000+00:00 hey yes, use exposedNets ## Seve — 2026-07-13T16:44:34.005000+00:00 that will expose nets outside the subcircuit ## Seve — 2026-07-13T16:44:49.396000+00:00 subcircuits are isolated by default- this is actually useful in a lot of contexts but can be confusing