Looking for someone with npm and webpack expertise to give me a hand the on animal kingdom sample application used in our Zero-to-DApp tutorial. @larry did a wonderful job coming up with the animal kingdom sample code. His code leveraged some npm scripts and webpack versions that are causing problems.
The npm build script does not run successfully on Windows sending minify errors (blocking me on completing that version of the tutorial)
I spent some time over the holiday attempting to work the webpack minify problem. Unfortunately, the fix recommended by React wouldnāt work with the code as in place.
@zone117x took a deeper look and we discussed it. We think the best thing to do is a subtractive approach. Remove the packaging there and redo what is there. Specifically Matt noted:
simpler npm scripts would make this simpler to manage
the babel packages should be upgraded
the webpack should be upgraded
Not clear how fast a wepack expert could knock this out ā maybe a couple of hours work. I now for a react/wepack newb like me, it would be maybe days. So, Iām asking for help from the community with this. (Iāve got a big Gaia doc push on and donāt want to put that push on a burner)
Anyway, reply here and check out the issues above if you are willing to help. Definitely willing to supply some Blockstack merch such as a t-shirt ā and credit in the tutorial for anyone willing to take this on.
Having to hold on the final Windows tutorialā¦breaking my heart.
Hereās something I whipped up over the last hour or so, please review/test to make sure itās what you need:
(currently figuring out why npm run test doesnāt work)
if someone more familiar with react can figure out why this is being thrown (in npm run test) when this file has nothing that references index.js.overrrides thatād be great:
ReferenceError: [BABEL] animal-kingdom\config\polyfills.js: Unknown option: animal-kingdom\node_modules\babel-preset-react-app\index.js.overrides. Check out Options Ā· Babel for more information about options.
The npm run and npm run build now work on MacOS and Windows. This is terrific @MichaelFedora because it means I can finish up the Windows build instructions opening a new, um, window on Zero-to-DAppās ability to teach new users.
You have alleviated the pane of myself and untold others. The npm test is unfortunate but not a blocker. Iāll create an issue just for that and leave this post up for someone else to tackle that.
DM me in slack or email me [email protected] with your email, Iāll see you get a coupon to get yourself some swag (free of cost or delivery fees) from our Shop.
I have a feeling the npm run test broke because I updated React to 16.7 from 16.5 (as I just did a full upgrade of all the deps to make sure theyād work with Webpack 4), but Iāll leave that to the experts.