This is currently my logging from an Angular build:
./angular/polyfills.ts - Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):
Error: Found non-callable @@iterator
./angular/main.ts - Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):
Error: Found non-callable @@iterator
✖ Failed to compile.
But my polyfills and main.ts haven't really differed from the default implementation.
And the upgrade guide from Angular itself didn't mention editing the polyfill or main.
main.ts
import '@datx/core/disable-mobx';
import {enableProdMode} from '@angular/core';
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
import {AppModule} from './app/app.module';
import {environment} from './environments/environment';
import {init} from '@sentry/angular';
import {Integrations as TracingIntegrations} from '@sentry/tracing';
init({
dsn: environment.sentry_dsn,
// This enables automatic instrumentation (highly recommended), but is not
// necessary for purely manual usage
integrations: [new TracingIntegrations.BrowserTracing()],
// To set a uniform sample rate
tracesSampleRate: environment.sentry_trace_sample_rate,
// Set the environment where sentry needs to post to.
environment: environment.type,
});
if (environment.production) {
enableProdMode();
}
platformBrowserDynamic().bootstrapModule(AppModule)
.catch(err => console.error(err));
polyfills.ts
/***************************************************************************************************
* Zone JS is required by default for Angular itself.
*/
import 'zone.js'; // Included with Angular CLI.
/***************************************************************************************************
* APPLICATION IMPORTS
*/
(window as any).global = window;
I would have expected to have a build