Skip to content

Browser loading bug #592

@rafaelmacario

Description

@rafaelmacario

When using highcharts in browser, the variable module param is becoming undefined and throwing an application error

Link to jsfiddle showing the issue.

https://jsfiddle.net/rafaelmacario/chhcpdu6/3/

Expected Behaviour

When loading the highchart module in browser it must detect the module existence in order to let script continue to load

Current Behaviour

highcharts-ng-js : Line 20

if (window && window.Highcharts) {
    Highcharts = window.Highcharts;
  // The module variable does not exists and the following error is thrown
  } else if (module && module.exports === 'highcharts-ng') {
        Highcharts = require('highcharts');
  }

Error: ReferenceError: module is not defined

Your Environment

  • Version of highcharts-ng used: 1.1.0
  • Browser Name and version: Mozilla Firefox For Ubuntu canonical -1.0 52.0.2 (64-bit)
  • Operating System and version (desktop or mobile): Ubuntu 14.04 LTS
  • Link to your project:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions