Skip to content
This repository was archived by the owner on Oct 9, 2020. It is now read-only.
This repository was archived by the owner on Oct 9, 2020. It is now read-only.

JSPM installation doesn't work #4

Open

Description

@fernandogmar

Hi!

I have installed it throught jspm: jspm install less
then it fails trying to find lesscss without success, on the browser you can see

Uncaught (in promise) Error: (SystemJS) XHR error (404 Not Found) loading http://localhost:8080/lesscss.js

and trying to build a bundle:

(SystemJS) ENOENT: no such file or directory, open '[path..]/www/lesscss.js'

just looking to plugin-less I have seen:

that the dependeny to lessscss is on less.js:17
return System['import']('lesscss', module.id)

and probably the configuration related to it is on package.json:13-18

    "map": {
      "lesscss": {
        "node": "./less-node.js",
        "browser": "./less-browser.js"
      }
    }

but probably something is missing here :'(, maybe I should add something else... as you inidicate for System.js installation

Thanks a lot!

Activity

  1. guybedford commented on Sep 23, 2016

    @guybedford
    Member

    The install here will only work in jspm 0.17 beta unfortunately. I'd suggest trying that.

  2. fernandogmar commented on Sep 23, 2016

    @fernandogmar
    Author

    Yeah, you are right that works!

    Thanks a lot!

    El 23 sept. 2016 13:00, "Guy Bedford" notifications@github.com escribió:

    The install here will only work in jspm 0.17 beta unfortunately. I'd
    suggest trying that.

    —
    You are receiving this because you authored the thread.
    Reply to this email directly, view it on GitHub
    #4 (comment),
    or mute the thread
    https://github.com/notifications/unsubscribe-auth/AAzFDJqAoA9D9BVU9bXo6riPBok7xhOhks5qs7FogaJpZM4KCc2b
    .

  3. inunotaisho commented on Dec 4, 2016

    @inunotaisho

    I had this same issue with jspm and had to install the beta package manager. Legacy support would be very useful. Obviously legacy support would probably start jspm 0.17 official release, but for future releases legacy support would be useful.

  4. cjkoski commented on Dec 14, 2016

    @cjkoski

    I was able to get this working with JSPM 0.16.33 by installing less as lesscss and providing a main override to use the distribution file after installing the css and less plugins.

    jspm install lesscss=github:less/less.js@2.7.1 -o "{ main: 'dist/less.js' } "

  5. cjkoski commented on Dec 14, 2016

    @cjkoski

    Actually unfortunately the bundling would fail because less falls over without window defined.

    Ended up using this plugin, seems to work well because it bundles customized version of less to handle the case.

    https://github.com/HuasoFoundries/systemjs-less-plugin

    In case anyone is in deep with 0.16 and not ready to upgrade.

  6. LearnShare commented on Dec 14, 2016

    @LearnShare

    Will this issue get fixed in 0.16.*? or I just:

    jspm install less=github:aaike/jspm-less-plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions