charsi
September 11, 2017, 10:58pm
1
In my project if I include bootstrap’s javascrpt file via
app.import(app.bowerDirectory + '/bootstrap/dist/js/bootstrap.min.js');
in ember-cli-build.js
I get a bunch of js errors and the pages don’t render.
If instead I include it in index.html it works fine. Any idea what could be causing this?
Error-
SyntaxError: export declarations may only appear at top level of a module
We needed to include popper.js just prior to bootstrap.
charsi
September 12, 2017, 11:21am
3
I’ve got popper just before bootstrap too. Still doesn’t seem to work.
broerse
September 13, 2017, 8:17pm
4
If you only need bootstrap css or fonts you can switch to NPM with ember-cli-bootstrap-css and ember-cli-bootstrap-fonts . Or ember-bootstrap if you also need bootstrap.js
. I don’t invest time in Bower solutions because Ember is slowly deprecating Bower.
2 Likes
SDen
September 19, 2017, 7:43am
5
and we can use ‘node_modules’ in 2.15+ at last
Updated on December 19, 2017 to include information about Ember.js 2.8-LTS. Today the Ember project is releasing version 2.15.0 of Ember.js, Ember Data, and Ember CLI. This...
1 Like