triplex icon indicating copy to clipboard operation
triplex copied to clipboard

Imported components are missing props and child elements

Open mommysgoodpuppy opened this issue 9 months ago • 4 comments

See image, Box and Box2 are identical but show up differently cause of import

Image

mommysgoodpuppy avatar Mar 19 '25 20:03 mommysgoodpuppy

Looks like this happens when missing a tsconfig.json. Replicate by:

  • loading examples-private/no-config example
  • click on box element
  • no props
  • click ambientLight and move it
  • now everything is loaded in

Area of interest:

  • @triplex/server -> getElementFilePath()

Edit: That said your example does have a tsconfig. Hmm.

itsdouges avatar Mar 22 '25 01:03 itsdouges

Can you confirm this happens with tsconfigs? I can replicate it without tsconfig, can't with.

itsdouges avatar Mar 26 '25 02:03 itsdouges

seems this has been fixed in one of the recent updates. I'll do more testing later today to make sure i dont have the issue anywhere and this can be closed

mommysgoodpuppy avatar Mar 28 '25 10:03 mommysgoodpuppy

I can still replicate it in projects that don't use a tsconfig so it's still valid to keep open

itsdouges avatar Mar 28 '25 10:03 itsdouges

To keep focus I'm closing this as low priority. If anyone runs into this please make a new issue and I can take a look.

itsdouges avatar Jul 17 '25 01:07 itsdouges