modifyVars fails when using inline <style type="text/less">
See original GitHub issueHere is a recreation of the issue using 1.4.1: http://jsfiddle.net/jShpK/
The resulting stacktrace:
TypeError: Cannot read property 'href' of undefined
at S (http://cdnjs.cloudflare.com/ajax/libs/less.js/1.4.1/less.min.js:9:3037)
at http://cdnjs.cloudflare.com/ajax/libs/less.js/1.4.1/less.min.js:11:12931
at Object.C [as _finish] (http://cdnjs.cloudflare.com/ajax/libs/less.js/1.4.1/less.min.js:9:11306)
at Object.e.importVisitor.run (http://cdnjs.cloudflare.com/ajax/libs/less.js/1.4.1/less.min.js:11:4579)
at Object.p.parse (http://cdnjs.cloudflare.com/ajax/libs/less.js/1.4.1/less.min.js:9:11377)
at Object.r.modifyVars (http://cdnjs.cloudflare.com/ajax/libs/less.js/1.4.1/less.min.js:11:12886)
at http://fiddle.jshell.net/jShpK/show/:28:10
at jQuery.event.dispatch (http://code.jquery.com/jquery-2.0.2.js:4692:9)
at elemData.handle (http://code.jquery.com/jquery-2.0.2.js:4376:28)
Issue Analytics
- State:
- Created 10 years ago
- Comments:13 (8 by maintainers)
Top Results From Across the Web
Less modifyVars not overriding the styles in webpack when ...
Im using antd with my theme and i didn't import these plugins. my config that works: { loader: 'less-loader', options: { modifyVars: ...
Read more >The Style Information element - HTML - MDN Web Docs
A cryptographic nonce (number used once) used to allow inline styles in a style-src Content-Security-Policy. The server must generate a ...
Read more >CSS Variables With Inline Styles - Ahmad Shadeed
With that in hand, I can tweak the inline style to change the value to another keyword.
Read more >CSP Allow Inline Styles - Content Security Policy
When you enable CSP, it will block inline styles, but there are some ways that you can allow inline styles and still use...
Read more >inline-css - npm
Inline css into an html file.. Latest version: 4.0.1, last published: 6 months ago. Start using inline-css in your project by running `npm...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@himanshuwt What same error?
There is no such problem when using version 1.50, but it appears again when using version 3.9.0