SyntaxError: Cannot use import statement outside a module
. The interop between Node, TypeScript, ESM, and bundlers is such a hot mess it makes my head spin. Sometimes I feel like I get it but most of the time I don’t. And honestly I stopped caring because I just want to write some code and get things done. But every now and then, I need to write scripts that are not meant to be part of the browser bundle but need to use some of the same libraries. Then I hit that error again.
With Deno, I don’t need to worry about bundlers, ESM, or how to set up TypeScript. I can still import modules from my apps and packages without conforming to how they were bundled. Things just work the way I expect them to and it feels so refreshing.
]]>In this guide, you’ll see how to distill the elements of creativity into four deliberate stages:
- Consume
- Critique
- Curate
- Create
I like following steps so this sounded like a good way to get started. Usually, I just go from consuming to creating. Would explicit steps for deliberation help me think of topics and motivate me to share more online? I hope so!
Let’s kick off the “critiquing” with what I used to make this site: Ter. It’s a “tiny wiki-style site builder” that looks gorgeous. I’m a big Obsidian user so the wiki-style writing feels right at home. I know you can publish your Obsidian notes but $20 per month is a big investment for a habit I’m still trying to form. It’s made with Deno which is dead-simple to deploy. All-in-all it took me around 30 minutes set this up under my domain and start writing. The creator is a designer so it looks great out of the box. I might try to tweak colors and/or fonts but that’s probably it. I don’t really have anything to comment against it aside from the occasional timeout crash in dev mode. I’m sure that’ll be fixed soon or I’ll figure out how to fix it myself.
]]>