I've been trying to get bootstrap to work with JSPM, but keep running into issues. I started a new project and went through the following steps:
$ yarn global add jspm@beta
$ jspm init # chose defaults on all except named the main file app.ts
$ jspm install bootstrap@3.3.7
$ touch src/app.ts
$ touch index.html
Downgrading to bootstrap@3.3.6 appears to work fine. I'm assuming that is due to the systemjs property in the override which points to the correct main (dist/js/bootstrap.js).
Interestingly enough, when upgrading back to bootstrap@3.3.7, it works, but this is because my package.json has kept the 3.3.6 overrides for some reason:
I've been trying to get bootstrap to work with JSPM, but keep running into issues. I started a new project and went through the following steps:
Add the following to
src/app.ts
:Add the following to
index.html
:When I serve that up, I see the following error:
When I take a look at the override for bootstrap@3.3.7, I see this:
Looking in the bootstrap github repo (https://github.com/twbs/bootstrap/tree/v3.3.7/js), there is no
js/bootstrap.js
. This should bedist/js/bootstrap.js
.Downgrading to bootstrap@3.3.6 appears to work fine. I'm assuming that is due to the
systemjs
property in the override which points to the correct main (dist/js/bootstrap.js
).Interestingly enough, when upgrading back to bootstrap@3.3.7, it works, but this is because my package.json has kept the 3.3.6 overrides for some reason:
jspm version: 0.17.0-beta.40 systemjs version: SystemJS v0.20.9 Dev (bundles with jspm)