带有RequireJS的Highcharts Error#27

时间:2017-06-30 20:54:34

标签: javascript html highcharts requirejs

我刚刚从4.xx升级到Highcharts 5.0.12,现在我遇到了Highcharts错误#27。该错误表明我需要包含/ import boost.js和boost-canvas.js。我已经导入了它们,我似乎仍然会收到错误#27。下面是我的require.config.js:

paths: {
    'text': 'thirdparty/requirejs-text/text',
    'js': 'js',
    'templates': 'templates',
    'moment': 'thirdparty/moment/moment',
    'highcharts-boost-canvas': 'thirdparty/highcharts/boost-canvas',
    'highcharts-boost': 'thirdparty/highcharts/boost',
    'highcharts': 'thirdparty/highcharts/highcharts',
    'highmaps': 'thirdparty/highcharts/highcharts-map-module'
},
shim: {
    'bootstrap': {deps: ['jquery']},
    'jquery-ui': {deps: ['jquery']},
    'datatables': {deps: ['jquery']},
    'highcharts-boost-canvas' : {deps: ['jquery'], exports: 'Highcharts'},
    'highcharts-boost' : {deps: ['jquery'], exports: 'Highcharts'},
    'highcharts': {deps: ['jquery'], exports: 'Highcharts'},
    'highmaps': {deps: ['Highcharts'], exports: 'Highcharts' },
    'jquery.cookie': {deps: ['jquery']},
    'jquery.history': {deps: ['jquery']}
}

我在设置中错过了一步或做错了什么?

0 个答案:

没有答案