Этот вопрос следить за этим вопросом закрыт на GitHub, потому что это не ошибка: https://github.com/highslide-software/highcharts.com/issues/4677Highcharts без JQuery и JSPM
Я хотел бы использовать Highcharts в моем проекте с адаптером Highcharts (чтобы избежать JQuery).
Но, я строю с JSPM, поэтому lib обычно должен предоставлять некоторую информацию в jspm/registry (https://github.com/jspm/registry) или документ о том, как это сделать, но я ничего не нахожу на форуме библиотеки и в стеке переполнение.
Прямо сейчас, я импортирования Highcharts так: (https://github.com/davinkevin/Podcast-Server/blob/jspm/public/config/config.js)
...
import HighCharts from 'highcharts-release';
...
И я зарегистрировал его как то в JSPM | SystemJS:
System.config({
baseURL: "./",
defaultJSExtensions: true,
transpiler: "babel",
babelOptions: {
"optional": [
"runtime",
"optimisation.modules.system"
]
},
paths: {
"github:*": "jspm_packages/github/*",
"npm:*": "jspm_packages/npm/*"
},
buildCSS: true,
separateCSS: true,
map: {
"AngularStompDK": "github:davinkevin/[email protected]",
"angular": "github:angular/[email protected]",
"angular-animate": "github:angular/[email protected]",
"angular-bootstrap": "github:angular-ui/[email protected]",
"angular-hotkeys": "github:chieffancypants/[email protected]",
"angular-loading-bar": "github:chieffancypants/[email protected]",
"angular-mocks": "npm:[email protected]",
"angular-notification": "github:neoziro/[email protected]",
"angular-route": "github:angular/bower-angu[email protected]",
"angular-sanitize": "github:angular/[email protected]",
"angular-touch": "github:angular/[email protected]",
"angular-truncate": "github:sparkalow/[email protected]",
"animate.css": "github:daneden/[email protected]",
"babel": "npm:[email protected]",
"babel-runtime": "npm:[email protected]",
"bootstrap-less": "github:distros/[email protected]",
"clean-css": "npm:[email protected]",
"core-js": "npm:[email protected]",
"css": "github:systemjs/[email protected]",
"font-awesome": "github:components/[email protected]",
"highcharts-ng": "github:pablojim/[email protected]",
"highcharts-release": "github:highslide-software/[email protected]",
"ionicons": "github:driftyco/[email protected]",
"lodash": "github:lodash/[email protected]",
"ng-file-upload": "github:danialfarid/[email protected]",
"ng-tags-input": "github:mbenford/[email protected]",
"ngstorage": "github:gsklee/[email protected]",
"pablojim/highcharts-ng": "github:pablojim/[email protected]",
"restangular": "github:mgonto/[email protected]",
"sockjs-client": "github:sockjs/[email protected]",
"stomp-websocket": "github:jmesnil/[email protected]",
"systemjs/plugin-text": "github:systemjs/[email protected]",
"text": "github:systemjs/[email protected]",
"videogular": "github:2fdevs/[email protected]",
"videogular-buffering": "github:2fdevs/[email protected]",
"videogular-controls": "github:2fdevs/[email protected]",
"videogular-overlay-play": "github:2fdevs/[email protected]",
"videogular-poster": "github:2fdevs/[email protected]",
"videogular-themes-default": "github:2fdevs/[email protected]",
"github:angular/[email protected]": {
"angular": "github:angular/[email protected]"
},
"github:angular/[email protected]": {
"angular": "github:angular/[email protected]"
},
"github:angular/[email protected]": {
"angular": "github:angular/[email protected]"
},
"github:angular/[email protected]": {
"angular": "github:angular/[email protected]"
},
"github:chieffancypants/[email protected]": {
"angular": "github:angular/[email protected]"
},
"github:chieffancypants/[email protected]": {
"angular": "github:angular/[email protected]",
"css": "github:systemjs/[email protected]"
},
"github:distros/[email protected]": {
"jquery": "github:components/[email protected]"
},
"github:jspm/[email protected]": {
"assert": "npm:[email protected]"
},
"github:jspm/[email protected]": {
"buffer": "npm:[email protected]"
},
"github:jspm/[email protected]": {
"events": "npm:[email protected]"
},
"github:jspm/[email protected]": {
"Base64": "npm:[email protected]",
"events": "github:jspm/[email protected]",
"inherits": "npm:[email protected]",
"stream": "github:jspm/[email protected]",
"url": "github:jspm/[email protected]",
"util": "github:jspm/[email protected]"
},
"github:jspm/[email protected]": {
"https-browserify": "npm:[email protected]"
},
"github:jspm/[email protected]": {
"os-browserify": "npm:[email protected]"
},
"github:jspm/[email protected]": {
"path-browserify": "npm:[email protected]"
},
"github:jspm/[email protected]": {
"process": "npm:[email protected]"
},
"github:jspm/[email protected]": {
"stream-browserify": "npm:[email protected]"
},
"github:jspm/[email protected]": {
"url": "npm:[email protected]"
},
"github:jspm/[email protected]": {
"util": "npm:[email protected]"
},
"github:mbenford/[email protected]": {
"angular": "github:angular/[email protected]",
"css": "github:systemjs/[email protected]"
},
"github:mgonto/[email protected]": {
"angular": "github:angular/[email protected]",
"lodash": "npm:[email protected]"
},
"npm:[email protected]": {
"fs": "github:jspm/[email protected]",
"module": "github:jspm/[email protected]",
"path": "github:jspm/[email protected]",
"process": "github:jspm/[email protected]"
},
"npm:[email protected]": {
"util": "npm:[email protected]"
},
"npm:[email protected]": {
"process": "github:jspm/[email protected]"
},
"npm:[email protected]": {
"base64-js": "npm:[email protected]",
"ieee754": "npm:[email protected]",
"is-array": "npm:[email protected]"
},
"npm:[email protected]": {
"buffer": "github:jspm/[email protected]",
"commander": "npm:[email protected]",
"fs": "github:jspm/[email protected]",
"http": "github:jspm/[email protected]",
"https": "github:jspm/[email protected]",
"os": "github:jspm/[email protected]",
"path": "github:jspm/[email protected]",
"process": "github:jspm/[email protected]",
"source-map": "npm:[email protected]",
"url": "github:jspm/[email protected]",
"util": "github:jspm/[email protected]"
},
"npm:[email protected]": {
"child_process": "github:jspm/[email protected]",
"events": "github:jspm/[email protected]",
"fs": "github:jspm/[email protected]",
"graceful-readlink": "npm:[email protected]",
"path": "github:jspm/[email protected]",
"process": "github:jspm/[email protected]"
},
"npm:[email protected]": {
"fs": "github:jspm/[email protected]",
"path": "github:jspm/[email protected]",
"process": "github:jspm/[email protected]",
"systemjs-json": "github:systemjs/[email protected]"
},
"npm:[email protected]": {
"buffer": "github:jspm/[email protected]"
},
"npm:[email protected]": {
"fs": "github:jspm/[email protected]"
},
"npm:[email protected]": {
"http": "github:jspm/[email protected]"
},
"npm:[email protected]": {
"util": "github:jspm/[email protected]"
},
"npm:[email protected]": {
"process": "github:jspm/[email protected]"
},
"npm:[email protected]": {
"os": "github:jspm/[email protected]"
},
"npm:[email protected]": {
"process": "github:jspm/[email protected]"
},
"npm:[email protected]": {
"assert": "github:jspm/[email protected]"
},
"npm:[email protected]": {
"process": "github:jspm/[email protected]"
},
"npm:[email protected]": {
"buffer": "github:jspm/[email protected]",
"core-util-is": "npm:[email protected]",
"events": "github:jspm/[email protected]",
"inherits": "npm:[email protected]",
"isarray": "npm:[email protected]",
"process": "github:jspm/[email protected]",
"stream-browserify": "npm:[email protected]",
"string_decoder": "npm:[email protected]"
},
"npm:[email protected]": {
"amdefine": "npm:[email protected]",
"process": "github:jspm/[email protected]"
},
"npm:[email protected]": {
"events": "github:jspm/[email protected]",
"inherits": "npm:[email protected]",
"readable-stream": "npm:[email protected]"
},
"npm:[email protected]": {
"buffer": "github:jspm/[email protected]"
},
"npm:[email protected]": {
"assert": "github:jspm/[email protected]",
"punycode": "npm:[email protected]",
"querystring": "npm:[email protected]",
"util": "github:jspm/[email protected]"
},
"npm:[email protected]": {
"inherits": "npm:[email protected]",
"process": "github:jspm/no[email protected]"
}
}
});
Но когда я загрузить проект, логически, ни JQuery или адаптер присутствует, поэтому Lib перестают работать с ошибками в консоли.
Как я могу решить эту проблему?
Благодаря
Каково было решение? Ты заработал? – Johannes