mercredi 25 juillet 2018

Installing dygraphs with bower install fails on Ember.js

Issuing a statement:

bower install dygraphs --save

And than adding reference to dygraphs:

app.import('vendor/dygraphs/src/dygraph.js')

Causes an error:

Uncaught SyntaxError: Unexpected identifier

on line:

import DygraphLayout from './dygraph-layout';

And:

Uncaught ReferenceError: define is not defined at ember-adater-file.js:1

What can be the cause of this and how to fix it?




Aucun commentaire:

Enregistrer un commentaire