Closed (duplicate)
Project:
Bootstrap
Version:
7.x-3.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
2 Jan 2014 at 21:25 UTC
Updated:
15 Jan 2014 at 18:47 UTC
Jump to comment: Most recent
Comments
Comment #1
Anonymous (not verified) commentedThis is caused by a version mismatch.
You are using /bootstrap source 3.0.0, but the theme requires bootstrap 3.0.1 or higer.
However, LESS 0.4.0 no longer works with bootstrap 3.0.3.
Effectively, this theme is now broken.
Comment #2
lmeister commentedThankyou, I experienced this issue but your comments got me on the right track.
I used bootstrap source 3.0.3 then upgraded the files in my drupal bootstrap sub theme /less folder. The two files I copied in from bootstrap source were:
Bootstrap.less (Modify the import paths in this file similar to old one)
Variables.less (Change path for @icon-font-path similar to old one)
Now everything compiles without error. I'm using LESS.js (1.6.0) through WinLess.
Comment #3
cimo75 commented#2 worked for me
Comment #4
Darko commentedTo avoid any variables mismatch you can also add
@import "../bootstrap/less/variables.less";
at the top of your imports in bootstrap.less file ( make sure it goes before you include your own overrides in @import "variables.less";)
This way you will have all the variables available regardless of the bootstrap version release (at leaset from 3.0.0 to 3.0.3 that I tested)
Comment #5
markhalliwellMarking as a dup of this issue.
Also, I would strongly recommend against using the above @import. This is extremely bad practice. As I've stated before in other issues, the reason you are getting errors is because it is telling you what is wrong. The errors needs to be fixed, not masked. If you @import the variables.less file, you will continue using the incorrect variables in your sub-theme. This can cause confusion as a person might expect the changed variable to affect the compiled code (which it may not since certain variable names may have changed or do not exist, as is in this case).