My least favorite thing about @Alpine_JS so-far – when you get a error in any JavaScript written in directives, you get an error that doesn’t show you where in the HTML the error occurred. I wish there was a way to improve that.
-
-
Alex Standiford
Setting up TypeScript with the wordpress/scripts library turned out to be surprisingly straightforward. I posted the snippet in WP Dev Academy’s discord: discord.com/channels/85871…
Will be posting an article on WP Dev Academy soon(ish). (heavy on the ish).
-
Alex Standiford
Just spent 20 minutes trying to make sense of why this was returning “undefined”.
I looked everywhere but the obvious spot.
It happens to all of us 😂 #javascript

-
Alex Standiford
Does anyone have a good example of how to set up TypeScript using wordpress/scripts?
I have a pretty good idea of how to go about it, but if someone else has already figured it out…


