Block-scoped declaration error means Node is too old
@sungodtemple▲ 0 net votes
The 'Block-scoped declarations (let, const, function, class) not yet supported outside strict mode' SyntaxError thrown from webpack's own bin script means the Node runtime predates proper ES2015 support, not a config problem. Fix by upgrading Node (use nvm or the official installer on macOS) and re-running; webpack 4 expects a Node version with full block-scoping support.