Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't load module when using 6to5 and bundle-sfx option #457

Closed
SekibOmazic opened this issue Jan 31, 2015 · 1 comment
Closed

Can't load module when using 6to5 and bundle-sfx option #457

SekibOmazic opened this issue Jan 31, 2015 · 1 comment

Comments

@SekibOmazic
Copy link

When using 6to5 and bundle-sfx option I get following message in the browser console:

Uncaught Module angular not present.

No problems at all when using traceur.

Here is my app.js snippet:

import angular from 'angular';
import 'angular-animate';
import 'angular-growl';
import 'angular-route';
import 'bootstrap/css/bootstrap.css!';
import './todo/todo.css!';
import { todoModule } from './todo/module'
import { gitHubModule } from './github/module';
import { Routes } from './Routes';
...

build.jscreated with 6to5 looks like this:

...
System.register("lib/app", ["angular", "angular-animate", "angular-growl", "angular-route", "bootstrap/css/bootstrap.css!", "./todo/todo.css!", "./todo/module", "./github/module", "./Routes"], function(_export) {
...

and the same line in build.jswhen using traceur:

...
System.register("lib/app", ["github:angular/bower-angular@1.3.8", "github:angular/bower-angular-animate@1.3.8", "github:marcorinck/angular-growl@0.4.0", "github:angular/bower-angular-route@1.3.8", "github:twbs/bootstrap@3.3.2/css/bootstrap.css!github:systemjs/plugin-css@0.1.0", "lib/todo/todo.css!github:systemjs/plugin-css@0.1.0", "lib/todo/module", "lib/github/module", "lib/Routes"], function($__export) {
...

Notice the differences in dep. array.

@guybedford
Copy link
Member

Thanks so much for letting me know so clearly! Moving to systemjs/builder#60.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants