Try adding declare var require: any;
on top.
More Related Contents:
- How to bundle an Angular app for production
- How to add font-awesome to Angular 2 + CLI project
- No ‘Access-Control-Allow-Origin’ header in Angular 2 app
- How to decrease prod bundle size?
- angular-cli where is webpack.config.js file – new angular6 does not support ng eject
- Uncaught Error: Unexpected directive ‘MyComboBox’ imported by the module ‘AppModule’. Please add a @NgModule annotation
- How to undo Angular 2 Cli ng-eject?
- Update to Angular v6 – Module not found: Error: Can’t resolve ‘fs’
- Angular 2 : No NgModule metadata found
- Avoiding relative paths in Angular CLI
- Using Angular CLI and unable to use relative image paths in CSS files
- Convert Promise to Observable
- How to create cross-domain request?
- Angular2 validator which relies on multiple form fields
- Inject a service manually
- How to send “Cookie” in request header for all the requests in Angular2?
- Can an ng-content be used inside of an ngFor?
- document.getElementById replacement in angular4 / typescript?
- Angular2 add class to body tag
- How can I avoid adding prefix “unsafe” to a link by Angular 2? [duplicate]
- Page is part of the declarations of 2 modules: Error in ionic build prod
- angular 2 change detection and ChangeDetectionStrategy.OnPush
- Angular 2 passing object via route params possible?
- Angular 2 – What is equivalent to Root Scope?
- Angular2 routing / deep linking not working with Apache 404
- Detect when IMG element has loaded in Angular 2+
- Cannot Instantiate DatePipe
- ::ng-deep going to be deprecated – Any alternatives?
- Why is ES7/array polyfill needed despite the tsconfig target is set to ES5
- Firestore how to get the collection value from another collection document id is referenced