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

JSPM installation doesn't work #4

Open
fernandogmar opened this issue Sep 21, 2016 · 6 comments
Open

JSPM installation doesn't work #4

fernandogmar opened this issue Sep 21, 2016 · 6 comments

Comments

@fernandogmar
Copy link

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!

@guybedford
Copy link
Member

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

@fernandogmar
Copy link
Author

Yeah, you are right that works!

Thanks a lot!

El 23 sept. 2016 13:00, "Guy Bedford" [email protected] 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
.

@inunotaisho
Copy link

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.

@cjkoski
Copy link

cjkoski commented Dec 14, 2016

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/[email protected] -o "{ main: 'dist/less.js' } "

@cjkoski
Copy link

cjkoski commented Dec 14, 2016

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.

@LearnShare
Copy link

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

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

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

No branches or pull requests

5 participants