TerrestrialOrigin on Nostr: Had a productive #coding day today. Unfortunately when I get hyperfixated on coding ...
Had a productive #coding day today. Unfortunately when I get hyperfixated on coding like this I forget to eat and drink. Yesterday was the same way & I stayed up until 2am. Was fucking zombified and frustrated at the end of the day. Banging my head against a dependency resolution issue involving electron, the browser, and react. 😖
Thankfully, I managed to get it solved today. Not 100% sure how, tho... 😒 Sus af... I know most of it was moving a common type to its own #project so that the #package for #electron specifically does not even TOUCH anything with #react. But like ... why would changing an import from a default one to a named one make any difference? ..... Waaaaait! Just now typing this out it dawned on me: because the #exports were done through index .ts file of the package and & wasn't importing directly from the file! (I usually export the thing that's the default export as a named one too so that it works when importing both ways. But when you're no longer importing directly from a source file because you moved that source file out to a separate project that also exports other things that no longer works) Shit! 😩 Having figured it out makes me feel better.
I need to #journal-write more often. It organizes the #mind.
Good night, #nostr! #GN
Thankfully, I managed to get it solved today. Not 100% sure how, tho... 😒 Sus af... I know most of it was moving a common type to its own #project so that the #package for #electron specifically does not even TOUCH anything with #react. But like ... why would changing an import from a default one to a named one make any difference? ..... Waaaaait! Just now typing this out it dawned on me: because the #exports were done through index .ts file of the package and & wasn't importing directly from the file! (I usually export the thing that's the default export as a named one too so that it works when importing both ways. But when you're no longer importing directly from a source file because you moved that source file out to a separate project that also exports other things that no longer works) Shit! 😩 Having figured it out makes me feel better.
I need to #journal-write more often. It organizes the #mind.
Good night, #nostr! #GN