Error when import angular-material in visType plugin

(whoami) #1
import 'angular-material/angular-material.css';
import 'angular-aria/angular-aria';
import 'angular-animate/angular-animate';
import 'angular-material/angular-material';

const module = require('ui/modules').get('kibana/vis-plugin', [

module.controller('MyController', function() {

get error message on kibana web page:

Script error. (:0)
Version: 5.2.0
Build: 8467
Error: Script error. (:0)
    at window.onerror (eval at <anonymous> (, <anonymous>:82:22)

(Felix Stürmer) #2

Hi @whoami,

a Script Error usually indicates a script that violates the same-origin policy. Maybe one of the angular modules you are requiring is trying to add an external script to the page? You could try turning on logging of XmlHttpRequests in the browser console to see whether that is the case.

(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.