Recently attempted to create a command line interface (CLI) project with Angular 6 and SP-PNP-JS library for data access. Followed tutorial by @arustacean at https://medium.com/ng-sp/angular-spa-in-sharepoint-3e7195741460 but with using the latest version of each library.
GitHub source code available at https://github.com/spjeff/sp-ng
However, received strange errors on the web pack TypeScript build process. Attached video shows the troubleshooting process. Cheers!
ERROR – Initializers are not allowed in ambient contexts.