jspm / jspm-cli

ES Module Package Manager
https://jspm.org
Apache License 2.0
3.77k stars 273 forks source link

Need help bundling, broken with CSS error in beta release.. #1790

Closed born2net closed 8 years ago

born2net commented 8 years ago

so I am forced to move to jspm beta due to angular2 @ npm syntax but now can not longer bundle to release.

in version 0.16 I did:

jspm bundle-sfx src/App.js ./dist/index.js --skip-source-maps

and all is great

in version 0.17 beta I do:

jspm bundle src/App.js ./dist/index.js --skip-source-maps

and I get an error of:

err

really need to resolve this asap since I can't go back to 0.16 and need to release production release today.

I didnt change any of my CSS config which is relative URLs in ng2 as in:

@Component({
    selector: 'Users',
    providers: [SimpleList],
    directives: [SimpleList, UsersDetails, Loading, Samplelist, DROPDOWN_DIRECTIVES, AddUser, MODAL_DIRECTIVES],
    styleUrls: ['../comps/app1/users/Users.css'],
    templateUrl: '/src/comps/app1/users/Users.html'
})
...

and in jspm.config.js I have same config as before for CSS

packages: {
    "src": {
      "main": "App",
      "defaultExtension": "ts",
      "meta": {
        "*.js": {
          "loader": "ts"
        },
        "*.ts": {
          "loader": "ts"
        },
        "*.css": {
          "loader": "css"
        }
      }
    }
  },

  map: {
    "angular2": "npm:angular2@2.0.0-beta.15",
    "angular2-polyfill": "npm:angular2-polyfill@0.0.2",
    "angular2-redux-util": "npm:angular2-redux-util@0.8.59",
    "angular2-uuid": "npm:angular2-uuid@1.0.7",
    "bootbox": "npm:bootbox@4.4.0",
    "bootstrap": "github:twbs/bootstrap@3.3.6",
    "clean-css": "npm:clean-css@3.4.12",
    "core-js": "npm:core-js@1.2.6",
    "crypto": "github:jspm/nodelibs-crypto@0.1.0",
    "css": "github:systemjs/plugin-css@0.1.20",

    ...

please assist and TX,

Sean

born2net commented 8 years ago

let me ask, why is it looking for a css directory in 0.17? I don't use such a dir...

born2net commented 8 years ago

fixed by redoing jspm dir!