After attempting to include the "anychart" library in my .ts file using the following import statement:
import 'anychart';
I noticed that this line of code caused the entire HTML page on my local server to disappear.
Here is a snippet from my .ts file:
import { Component, OnInit } from '@angular/core';
import { GetDataService } from '../../services/get-data.service';
import 'anychart';
@Component({
selector: 'app-venn',
templateUrl: './venn.component.html',
styleUrls: ['./venn.component.css']
})
export class VennComponent implements OnInit {
//chart: anychart.charts.Venn;
pizza3Field = [];
constructor(
private getDataService: GetDataService,
) { }
ngOnInit(): void {
this.getDataService.sendGetRequest().subscribe((data: any[]) => {
this.pizza3Field = data;
})
}
}
And here is a portion of my HTML file:
<p>venn works!</p>
Has anyone else encountered a similar issue? If so, how did you resolve it?