swimlane / systemjs-route-bundler

SystemJS Route-Driven Bundler
MIT License
41 stars 8 forks source link

Cannot read property createDefine of undefined.. #43

Open justinkames opened 8 years ago

justinkames commented 8 years ago

Hi,

I'm getting the following error with the system-js-route-bundler after building :

Uncaught (in promise) Error: TypeError: Cannot read property 'createDefine' of undefined(…) app.js =>

"bundle";!function(){var _removeDefine=System.get("@@amd-helpers").createDefine();!function(t) {"function"==typeof d...

Using it with the https://github.com/Swimlane/angular1-systemjs-seed project.

Any clues on why this is happening? Thanks!

justinkames commented 8 years ago

Found a fix here : https://github.com/aurelia/bundler/issues/91

As a workaround install jspm@0.16.29 locally. In your project:

$ npm install -D jspm@0.16.29
$ jspm dl-loader

Now im getting :

Uncaught (in promise) SyntaxError: Unexpected token <
    Evaluating http://localhost:3000/jspm_packages/github/systemjs/plugin-json@0.1.0.js
amcdnl commented 8 years ago

This only supports v0.16 of JSPM. We are working on supporting 0.17 though.