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

404 Issue #2

Closed
kieransenior opened this issue Sep 23, 2011 · 5 comments
Closed

404 Issue #2

kieransenior opened this issue Sep 23, 2011 · 5 comments

Comments

@kieransenior
Copy link

If I run the command lessc test.less anything.css I get the following:

ERROR:
   name: Error
   description: Couldn't load test-import.less (404)
   message: Couldn't load test-import.less (404)

I can see that you're using AJAX requests through the WSF file and using cscript to compile it for use locally. I'm running the following command:

lessc test.less rar.css

The "test.less" file is definitely in the same directory as when I call it.

Any ideas?

@duncansmart
Copy link
Owner

It can't find test-import.less - is that in the same directory as test.less?

@kieransenior
Copy link
Author

What does test-import.less have to do with it? That's my confusion.

Simply put, I have a file, "test.less" which I want to compile out to "rar.css". In this instance, "test.less" exists in the same directory as "lessc.cmd". I'm not sure where "test-import.less" comes into this as I've not indicated it anywhere myself.

@duncansmart
Copy link
Owner

The test.less that it's using has an @import(test-import.less) in it. It looks like it's picking up the test.less that I supply in the /test directory.

@kieransenior
Copy link
Author

Looks to me like it relies on test-import.less for some reason. It doesn't matter what I call the filename, if I run something from the root directory it will always throw that above error up.

@duncansmart
Copy link
Owner

OK, I've just done this. I have a file called foo.less:

@mycolor: red;
.foo {
    color: @mycolor;
}

In the foo.less directory I run:

lessc foo.less

and it outputs:

.foo {
  color: red;
}

So, sorry - I can't reproduce your issue.

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

2 participants