When you first introduce the contents of the webpack.config.js
file you include the resolve
block, but it is omitted in the longer version of the file contents that shortly follows. If the code is copied as written it fails at yarn run build
(which is what happened to me until I saw this comment).
Thanks for this article. It’s a great intro!