I guess I'm a little obsessed with having some sort of success so I kept going. I re-installed Flarum, and deleted the extension I was working on, even though that was overkill. But, I took an atomic bomb approach... Blew everything up, and started over.
I took your poke demo, @clarkwinkelmann, and got it imported into Google Cloud Shell since it required the JavaScript compilation step to work. I also decided to go with yarn
and yarn build
this time because that's what you do in your video. Compilation was successful.
I forked your poke demo and moved the compiled JavaScript files from Google Cloud Shell into my freshly forked GitHub repository... submitted to Packagist... and, voila! Your poke extension is working and running at one of my forums. No errors, and no node_modules
needed (for the production version that is). 🦄
That's all I was trying to do when I started this thread. But, before in an effort to learn more, I tried getting the poke demo extension running a harder way. I started from scratch using that Extension Generator. It could have been so many things that I did wrong along the way. Who knows... all I know is, I successfully compiled JavaScript online via Cloud Shell for the first time, and got a working extension. Woo!
So, just call me Mr. Dev Guru Ninja. I guess I'll be blasting out some incredible extensions soon thanks to all this learning... LOL, not really.