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
@import
of bootstrap with ember-cli-less
fails
#133
Comments
@import
of bootstrap with ember-cli-less
fails
Looks good to me, no idea why that fails... do you have this available on a public repo? |
Just had a fresh new app setup this way without problems. As there is missing feedback and no way to reproduce, I will close this for now. |
A little bit more info. It is enough to edit module.exports = function(defaults) {
const app = new EmberApp(defaults, {
'lessOptions': {
paths: [
'.',
'node_modules',
]
},
// ....
} And the error will appear. If you will delete |
Ping @simonihmig to open/reconsider the bug, if it is possible ;) I tried to understand, what is going on, but seems like I need to understand how |
Another one finding: any other plugin could break the build. I just added module.exports = function(defaults) {
const app = new EmberApp(defaults, {
'ember-font-awesome': {
useLess: true,
}, And got the same error:
As you could see - |
Will have a look. Looks as if something changes with the paths that Less uses to look for files to import, so it won't find bootstrap... |
I could try to fix, but I need an entry points (articles, post, guides...) for
If you have a good starter pack I will appreciate! |
I investigated this a bit. It seems to me this is a bug in one of the upstream Less packages, see the PR above, that needs to be fixed there. Not much I can do in this addon for now, I think... |
ember-cli-less 1.5.4 just got released, and should fix this! @maxkoryukov can you confirm? |
@simonihmig let me check;) |
@simonihmig great, my build fixed! Thank you! |
Cool, thanks for checking! |
@simonihmig thank you! You are the real power of open-source culture;))) |
I've just setup a new ember project, added
ember-cli-less
,ember-font-awesome
and this addon. Thefont-awesome
import does work, but importing thebootstrap-less/bootstrap
does not.I've looked into your code and debugged
ember serve
, sounds like the detection ofember-cli-less
is ok and includesbower_components/bootstrap/less
in the trees.Now I am out of ideas where to look and that has been too long I did not write anything ember-addon related... can't figure out why the less thing isn't working.
Here is what I did (I yet did not created/changed any other file):
I remove
app/styles/app.css
and createdapp/styles/app.less
as so:Here is the error I got:
My package.json
devDependencies
:My bower.json
dependencies
:Versions
The text was updated successfully, but these errors were encountered: